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
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
Depends on what BLAS you're using. And why are you using C++ for doing linear algebra anyway? Use Matlab.
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.
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.