Constructs a new matrix
matrix<T>( ); matrix<T>( const matrix<T>& t ); matrix<T>( size_t rows, size_t cols, const T& def = T() ); |
matrix object whose contents will be copied into this matrix.
Number of rows after construction.
Number of columns after construction.
Value of all new members.
These are a standard constructor and a standard copy constructor.
The third constructor, allows you to set the size of the matrix. The matrix will initially be populated with the value of argument def, which defaults to 0, 0.0, false or "".
Header: matrix.h