|
Ublas : |
From: Karl Meerbergen (karl.meerbergen_at_[hidden])
Date: 2008-01-12 13:03:14
Dear Nisha,
You should include the following files:
boost/numeric/bindings/traits/ublas_matrix.hpp
boostnumeric/bindings/lapack/gesv.hpp
Also, make sure dense_matrix is column_major!
Good luck,
Karl
nisha kannookadan wrote:
> Hi all
>
> Im trying to use the bindings, but something is wrong, but the error feedback aint helpful.
>
> This is the code:
>
>
> #include
> #include
> #include
> #include
> #include
> #include
>
>
> #include
> #include
>
>
> #define NDEBUG
>
> using namespace boost::numeric;
>
> int main() {
>
> ublas::matrix A(5,5);
> ublas::matrix b(5,1);
>
> // Construct a simple matrix
> for (int i=0; i<=j ? 5.0+i-j : 0.0;
>
> std::cout << A << std::endl;
>
> for (int i=0; i<< b << std::endl;
> }
>
> I believe, this should work, but the line: bindings::lapack::gesv(A,b); gives trouble, it says "Undefined symbols",
> but I put its header in it.
>
> Thanks for any help
>
> Nisha K
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>