template<class F>
NumMat& NumMat< F >::operator= const NumMat< F > &  C  )  [inline]
 

A way of setting an existing matrix equal to another exisiting matrix

Definition at line 71 of file nummat.hpp.

00071                                      {
00072          if(_owndata) { 
00073                 if(_m>0 && _n>0) { delete[] _data; _data = NULL; } 
00074          }
00075          _m = C._m; _n=C._n; _owndata=C._owndata;
00076          if(_owndata) {
00077                 if(_m>0 && _n>0) { _data = new F[_m*_n]; assert( _data!=NULL ); memset(_data, 0, _m*_n*sizeof(F)); } else _data=NULL;
00078                 if(_m>0 && _n>0) memcpy( _data, C._data, _m*_n*sizeof(F) );
00079          } else {
00080                 _data = C._data;
00081          }
00082          return *this;
00083   }


Generated on Sun Dec 4 18:13:13 2005 for common by  doxygen 1.4.5