template<class F>
NumMat< F >::NumMat int  m,
int  n,
bool  owndata,
F *  data
[inline]
 

Construct NumMat with data given. If owndata is false, then the data passed is not stored in a new array, F. Otherwise, an array of type F must be allocated into memory to store the data

Definition at line 45 of file nummat.hpp.

00045                                              : _m(m), _n(n), _owndata(owndata) {
00046          if(_owndata) {
00047                 if(_m>0 && _n>0) { _data = new F[_m*_n]; assert( _data!=NULL ); memset(_data, 0, _m*_n*sizeof(F)); } else _data=NULL;
00048                 if(_m>0 && _n>0) memcpy( _data, data, _m*_n*sizeof(F) );
00049          } else {
00050                 _data = data;
00051          }
00052   }


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