This is a sample program for multiplying matrix to vector using boost.Am not able to understand why i am getting this error.Can anyone help me understand what is wrong in this program.
Thanks in advance
int main()
{
boost::numeric::ublas::matrix<double,column_major> m(100, 100);
boost::numeric::ublas::vector<double> n(100);
boost::numeric::ublas::vector<double> mn(100);
for (unsigned i = 0; i < m.size1(); ++i)
for (unsigned j = 0; j < m.size2(); ++j)
m(i, j) = 3 * i + j;
for (unsigned i = 0; i < n.size(); ++i)
n(i) = 1.25;
mn = block_prod<vector<double>, 64>(m, n);
for (unsigned i = 0; i < mn.size(); ++i)
std::cout << mn(i)<<" ";
return 0;
}
I get this compile error >d:\boost_1_72_0\boost\numeric\ublas\operation_blocked.hpp(64): error C2672: 'project': no matching overloaded function found