template<class F>
void NumMat< F >::resize int  m,
int  n
[inline]
 

Resize the matrix with new m and n. Asserts _owndata is true so that new array of type F can be allocated into memory

Definition at line 85 of file nummat.hpp.

Referenced by SVDRep::construct().

00085                              {
00086          assert( _owndata==true );
00087          if(_m!=m || _n!=n) {
00088                 if(_m>0 && _n>0) { delete[] _data; _data = NULL; } 
00089                 _m = m; _n = n;
00090                 if(_m>0 && _n>0) { _data = new F[_m*_n]; assert( _data!=NULL ); memset(_data, 0, _m*_n*sizeof(F)); } else _data=NULL;
00091          }
00092   }


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