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

Construct NumVec of size _m and whether or not it owns its data (_owndata). If so, create space for _data = F[_m]. Otherwise, point _data to the data input

Definition at line 47 of file numvec.hpp.

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


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