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

template<class C>
MatrixTem<C> Impala::Core::Matrix::MatrixTem< C >::operator+ ( const MatrixTem< C > &  a  )  const [inline]

Addition.

Definition at line 208 of file MatrixTem.h.

References Impala::Core::Matrix::MatrixTem< C >::i(), Impala::Core::Matrix::MatrixTem< C >::nCol(), and Impala::Core::Matrix::MatrixTem< C >::nRow().

00209 {
00210     if ((a.nCol() != nCol()) || (a.nRow() != nRow()) ) {
00211         std::cerr << "nonconformant MatrixTem + MatrixTem operands." << std::endl;
00212         return MatrixTem<C>(0,0);
00213     }
00214     MatrixTem<C> m(nRow(), nCol());
00215     int i, j;
00216     for (i=0 ; i<nRow() ; i++) {
00217         for (j=0 ; j<nCol() ; j++)
00218             m[i][j] = a[i][j] + (*this)[i][j];
00219     }
00220     return m;
00221 }

Here is the call graph for this function:


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