XLL+ Class Library (6.3)

matrix<T>::matrix<T>

Constructs a new matrix

matrix<T>( );
matrix<T>(
   const matrix<T>& t
);
matrix<T>(
   size_t rows,
   size_t cols,
   const T& def = T()
);

Parameters

t

matrix object whose contents will be copied into this matrix.

rows

Number of rows after construction.

cols

Number of columns after construction.

def

Value of all new members.

Remarks

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 "".

Requirements

Header: matrix.h

See Also

matrix<T> Class | matrix<T> Methods |