next up previous contents
Next: 2.2.2 Copy Constructor Up: 2.2 Constructors Previous: 2.2 Constructors   Contents

2.2.1 Default Constructor

The default constructor takes no arguments. However, the protected method, matalloc, is called to set up row indices and zero the storage area. Note that matalloc does not perform any dynamic memory allocation; the name is as such due to legacy implementations that did support dynamic memory allocation.


  template < typename tData, int tRows, int tCols >
  Matrix< tData, tRows, tCols > (void);


  Matrix < unsigned char, 64, 64 > Bitmap;
  Matrix < double, 3, 1 > R;
  Matrix < complex < double >, 3, 3 > Z;

Andrew Douglas 2005-03-15