Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class C>
VectorTem<C> Impala::Core::Matrix::operator * ( const VectorTem< C > &  a,
const MatrixTem< C > &  b 
) [inline]

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:


Generated on Thu Jan 13 09:20:15 2011 for ImpalaSrc by  doxygen 1.5.1