Hi all

I am new to blas and want to know how to write a code for simple matrix multiplication A*B.

Not sure how to define the matricies/vectors.

Shuo

Printable View

- 11-02-2007shuoblas library
Hi all

I am new to blas and want to know how to write a code for simple matrix multiplication A*B.

Not sure how to define the matricies/vectors.

Shuo - 11-02-2007cunnus88
Depends on what BLAS you're using. And why are you using C++ for doing linear algebra anyway? Use Matlab.

- 11-03-2007pheres
http://www.boost.org/libs/numeric/ub...s_overview.htm

C++ compiler is for free, matlab not. Compiled c++ can easily be deployed, with matlab every user needs ... matlab. With C++ the computer can play video or music or render pictures to the beat of lin. alg. calculations, with matlab not. - 11-03-2007cunnus88
True. But you can use octave.

It's all very nice using C++, but have you ever tried populating a matrix in C++? Ick. And I looked into the boost BLAS library, and while it's all nice (basic math operations, blocking), it would still be a headache to implement your own eigenvector/value solver, cholesky/householder factorization, or singular value decomposition. AND you have to think about numerical stability. Thank god for the people out there who are paid to study that stuff.