From 611fc1789434f6b335f42739ed0d99b39c686da1 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 23 Mar 2011 11:39:35 +0100 Subject: add support for ublas --- bench/BenchUtil.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'bench/BenchUtil.h') diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 9798fa385..8883a1380 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -69,4 +69,24 @@ void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) } #endif +#ifdef BENCH_UBLAS +#include +#include +template +void eiToUblas(const EigenMatrixType& src, UblasMatrixType& dst) +{ + dst.resize(src.rows(),src.cols()); + for (int j=0; j +void eiToUblasVec(const EigenType& src, UblasType& dst) +{ + dst.resize(src.size()); + for (int j=0; j