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

template<class C>
CxVector<C> operator * ( const CxVector< C > &  a,
const CxMatrixTem< C > &  b 
) [inline]

Definition at line 388 of file Matrix.h.

References CxMatrixTem< C >::nCol(), and CxMatrixTem< C >::nRow().

00389 {
00390     if (a.Size() != b.nRow()) {
00391         CX_CERR << "nonconformant CxVector<C> * CxMatrixTem operands." << CX_ENDL;
00392         return CxVector<C>(0);
00393     }
00394     CxVector<C> v(b.nCol());
00395     double sum;
00396     int i, j;
00397     for (i=0 ; i<b.nCol() ; i++) {
00398         sum = 0;
00399         for (j=0 ; j<b.nRow() ; j++)
00400             sum += a[j] * b[j][i];
00401         v[i] = sum;
00402     }
00403     return v;
00404 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:12:23 2010 for ImpalaSrc by  doxygen 1.5.1