Boost logo

Ublas :

Subject: Re: [ublas] Example of use of boost::numeric::bindings::lapack with symmetric or triangular matrices?
From: Stuart Anderson (stuart.errol.anderson_at_[hidden])
Date: 2011-06-12 00:26:07


Thanks for that!

Tried this;

svn co http://svn.boost.org/svn/boost/sandbox/numeric_bindings/
g++ -I/home/stuart/Desktop/numeric_bindings/ -llapack -lblas
-lgfortran hello-world.cpp -o hello_world

Got this result;

hello-world.cpp: In function ‘int main()’:
hello-world.cpp:9:5: error: ‘cout’ is not a member of ‘std’
hello-world.cpp:9:18: error: ‘bindings’ has not been declared

this is the hello-world.cpp;

#include <boost/numeric/bindings/std/vector.hpp>
#include <boost/numeric/bindings/size.hpp>

int main() {
    std::vector<double> a;
    a.push_back( 1.0 );
    a.push_back( 2.0 );
    a.push_back( 3.0 );
    std::cout << bindings::size( a ) << std::endl;
}

On Sun, Jun 12, 2011 at 3:28 AM, Rutger ter Borg <rutger_at_[hidden]> wrote:
> On 2011-06-11 05:06, Stuart Anderson wrote:
>>
>> stuart_at_Turing:/tmp$ cd ~/Desktop
>>
>> stuart_at_Turing:~/Desktop$ g++ -L -llapack -L -lblas -lgfortran
>> hello-world.cpp -o hello_world
>>
>> hello-world.cpp:1:49: fatal error:
>> boost/numeric/bindings/std/vector.hpp: No such file or directory
>> compilation terminated.
>>
>
> Right. You could try to use recent version of the bindings, which reside at
> the boost sandbox repository located at
> http://svn.boost.org/svn/boost/sandbox/numeric_bindings/ . To obtain a copy,
> install subversion, and issue a command like
>
> $ svn co http://svn.boost.org/svn/boost/sandbox/numeric_bindings/
>
> and keep it in some subdirectory under ~. Then, try
>
> g++ .... -I ~/path/to/bindings
>
> HtH,
>
> Cheers,
>
> Rutger
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: stuart.errol.anderson_at_[hidden]
>