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

Definition at line 57 of file offmat.hpp.

00057                                      {
00058          if(_owndata) { 
00059                 if(_m>0 && _n>0) { delete[] _data; _data = NULL; } 
00060          }
00061          _m = C._m; _n=C._n; _s = C._s; _t=C._t; _owndata=C._owndata;
00062          if(_owndata) {
00063                 if(_m>0 && _n>0) { _data = new F[_m*_n]; assert( _data!=NULL ); memset(_data, 0, _m*_n*sizeof(F)); } else _data=NULL;
00064                 if(_m>0 && _n>0) memcpy( _data, C._data, _m*_n*sizeof(F) );
00065          } else {
00066                 _data = C._data;
00067          }
00068          return *this;
00069   }


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