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

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

Definition at line 409 of file Matrix.h.

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

00410 {
00411     if (b.Size() != a.nCol()) {
00412         CX_CERR << "nonconformant CxMatrixTem * CxVector<C> operands." << CX_ENDL;
00413         return CxVector<C>(0);
00414     }
00415     CxVector<C> v(a.nRow());
00416     double sum;
00417     int i, j;
00418     for (i=0 ; i<a.nRow() ; i++) {
00419         sum = 0;
00420         for (j=0 ; j<a.nCol() ; j++)
00421             sum += a[i][j] * b[j];
00422         v[i] = sum;
00423     }
00424     return v;
00425 }

Here is the call graph for this function:


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