Hi!
Initially I installed BLAS, Lapack, and ATLAS but the matrix multiplication didn't work, it gave me this errors:
/usr/local/include/armadillo_bits/blas_wrapper.hpp|79|undefined reference to `wrapper_dgemv_'|
/usr/local/include/armadillo_bits/blas_wrapper.hpp|114|undefined reference to `wrapper_dgemm_'|
And now after I installed ACML I have the same problem.
This is my C++ code:
1 2 3 4 5 6 7 8 9 10 11 12
|
#include <iostream>
#include "armadillo"
using namespace arma;
using namespace std;
int main()
{
mat A = "1 2;3 4;5 6";
mat B = "2 4 8;2 4 8";
mat C= A*B;
cout<<C<<"\n";
return 0;
}
|
Can someone help me make this work?
Last edited on