|
Ublas : |
Subject: Re: [ublas] numeric bindings nrm2 differences
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2011-11-30 02:58:25
On 2011-11-29 18:23, Kraus Philipp wrote:
>
> The C++ Code ist build with
> g++ text.cpp -I/Developer/opt/Boost/1.48.0/include
> -I/Developer/opt/Boost/sandbox/numeric_bindings -latlas -lf77blas -lcblas
>
> Matlab result: 1.897052466920491
> C++ result: blas:1.46849
> ublas:1.46849
I've tried both variants:
$ g++ test.cpp -DBOOST_NUMERIC_BINDINGS_BLAS_CBLAS -lcblas
gives
blas: 1.89705
ublas: 1.89705
and
g++ test.cpp -lblas
gives
blas: 1.89705
ublas: 1.89705
>
> If I compile it with -D BOOST_NUMERIC_BINDINGS_BLAS_CBLAS flag, I get
> errors eg:
> /Developer/opt/Boost/sandbox/numeric_bindings/boost/numeric/bindings/blas/detail/cblas_option.hpp:26:
> error: âCBLAS_ORDERâ does not name a type
> /Developer/opt/Boost/sandbox/numeric_bindings/boost/numeric/bindings/blas/detail/cblas_option.hpp:31:
> error: âCBLAS_ORDERâ does not name a type
[snip]
Is the cblas.h header in your compiler search path?
Maybe you are passing 64 bit stuff to 32 bit libraries, or the other way
around?
Cheers,
Rutger