Boost logo

Ublas :

From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2008-03-26 08:30:12


> 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