template<class C>
Definition at line 396 of file MatrixTem.h. References Impala::Core::Matrix::MatrixTem< C >::nCol(), Impala::Core::Matrix::MatrixTem< C >::nRow(), and Impala::Core::Vector::VectorTem< ElemT >::Size(). 00397 { 00398 if (a.Size() != b.nRow()) { 00399 std::cerr << "nonconformant VectorTem<C> * MatrixTem operands." << std::endl; 00400 return VectorTem<C>(0); 00401 } 00402 VectorTem<C> v(b.nCol()); 00403 double sum; 00404 int i, j; 00405 for (i=0 ; i<b.nCol() ; i++) { 00406 sum = 0; 00407 for (j=0 ; j<b.nRow() ; j++) 00408 sum += a[j] * b[j][i]; 00409 v[i] = sum; 00410 } 00411 return v; 00412 }
Here is the call graph for this function:
|