Prev | Up | Next

Matrix TCL Pro Reference Manual

The matrix class is declared as template in a separate namespace, named "techsoft", in the header file <cmatrix>.

template <typename T>
class matrix;

To use Matrix TCL in your program, include the header file <cmatrix> in your program source file. You may want use a typedef statement to simplify the declaration of matrix objects in your program.

#include <cmatrix>

typedef techsoft::matrix<double> Matrix;

typedef std::complex<double> dComplex;
typedef techsoft::matrix<dComplex> CMatrix;

Matrix A(4,4), B(4,4), C(4,4);
CMatrix CA(4,4), CB(4,4), CC(4,4);

The matrix class is documented in the following sections: