template<class C>
Addition.
Definition at line 200 of file Matrix.h. References CxMatrixTem< C >::i(), CxMatrixTem< C >::nCol(), and CxMatrixTem< C >::nRow(). 00201 { 00202 if ((a.nCol() != nCol()) || (a.nRow() != nRow()) ) { 00203 CX_CERR << "nonconformant CxMatrixTem + CxMatrixTem operands." << CX_ENDL; 00204 return CxMatrixTem<C>(0,0); 00205 } 00206 CxMatrixTem<C> m(nRow(), nCol()); 00207 int i, j; 00208 for (i=0 ; i<nRow() ; i++) { 00209 for (j=0 ; j<nCol() ; j++) 00210 m[i][j] = a[i][j] + (*this)[i][j]; 00211 } 00212 return m; 00213 }
Here is the call graph for this function:
|