Boost logo

Ublas :

From: e r (erwann.rogard_at_[hidden])
Date: 2008-04-12 22:35:32


Thomas Klimpel wrote:
>> but not the example here:
>>
>> http://boost.cvs.sourceforge.net/boost-sandbox/boost-sandbox/libs/numeric/bindings/lapack/test/ublas_potrf_potrs.cc?revision=1.2&view=markup
>
>> first I have to comment out utils.h and init_symm and print_m (what is utils.h?)
>
> you may try the following patch instead
>
> Index: libs/numeric/bindings/lapack/test/utils.h
> ===================================================================
> --- libs/numeric/bindings/lapack/test/utils.h (Revision 43794)
> +++ libs/numeric/bindings/lapack/test/utils.h (Arbeitskopie)
> @@ -101,8 +101,9 @@
> template <typename M>
> struct matr_access_traits {
> typedef typename
> - boost::numeric::bindings::traits::matrix_traits<M>::value_type val_t;
> - typedef val_t& ref_t;
> + M::reference ref_t;
> + //boost::numeric::bindings::traits::matrix_traits<M>::value_type val_t;
> + //typedef val_t& ref_t;
> static ref_t elem (M& m, size_t i, size_t j) { return m (i, j); }
> };
>
> Index: boost/numeric/bindings/lapack/posv.hpp
> ===================================================================
> --- boost/numeric/bindings/lapack/posv.hpp (Revision 43794)
> +++ boost/numeric/bindings/lapack/posv.hpp (Arbeitskopie)
> @@ -27,6 +27,7 @@
> # include <boost/type_traits/is_same.hpp>
> #endif
>
> +#include <cassert>
>
> namespace boost { namespace numeric { namespace bindings {
>
>
>> second, here's what i get:
>
> I also get the impression that something with your include path is wrong.
>
> Regards,
> Thomas
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas

Hi all, and thanks for the previous remarks. I have left this unattended
for a while but would really hope to get the example at the top of this
message to work one day, with your help. I think I have resolved the
"include path" part of the problem. See below for remaining errors. Is
the above patch still relevant?

**** Build of configuration Debug for project
testing_numeric_bindings_chol ****

make -k all
Building target: testing_numeric_bindings_chol
Invoking: GCC C++ Linker
g++ -L/usr/local/atlas/lib -o"testing_numeric_bindings_chol" ./main.o
 -latlas -lcblas -lf77blas -llapack -lptcblas -lptf77blas
/usr/local/atlas/lib/liblapack.a(ATL_cpotrs.o): In function `ATL_cpotrs':
ATL_potrs.c:(.text+0xcc): undefined reference to `ATL_sscal'
ATL_potrs.c:(.text+0x1a4): undefined reference to `ATL_sscal'
/usr/local/atlas/lib/libptcblas.a(cblas_sptsyrk.o): In function
`cblas_ssyrk':
cblas_ssyrk.c:(.text+0x226): undefined reference to `ATL_sptsyrk'
/usr/local/atlas/lib/libptcblas.a(cblas_spttrsm.o): In function
`cblas_strsm':
cblas_strsm.c:(.text+0x250): undefined reference to `ATL_spttrsm'
/usr/local/atlas/lib/libptcblas.a(cblas_cptherk.o): In function
`cblas_cherk':
cblas_cherk.c:(.text+0x217): undefined reference to `ATL_cptherk'
/usr/local/atlas/lib/libptcblas.a(cblas_cpttrsm.o): In function
`cblas_ctrsm':
cblas_ctrsm.c:(.text+0x26d): undefined reference to `ATL_cpttrsm'
/usr/local/atlas/lib/libptf77blas.a(xerbla.o): In function `xerbla_':
xerbla.f:(.text+0x18): undefined reference to `s_wsfe'
xerbla.f:(.text+0x2f): undefined reference to `do_fio'
xerbla.f:(.text+0x46): undefined reference to `do_fio'
xerbla.f:(.text+0x50): undefined reference to `e_wsfe'
xerbla.f:(.text+0x64): undefined reference to `s_stop'
collect2: ld returned 1 exit status
make: *** [testing_numeric_bindings_chol] Error 1
make: Target `all' not remade because of errors.
Build complete for project testing_numeric_bindings_chol