Prev | Up | Next

Matrix TCL Pro User's Manual

The Matrix TCL Pro is written as a template and tested with float, double, long double, complex<float>, complex<double>, and complex<long double>types. You can also use it with any other third party floating-point type of classes. However, most of the matrix operations are not supported for integer types. We have tested this class with matrices of size up to 1000 x 1000 without any problem (on PII 400Mz, 64MB RAM). Note that this class works only with the dense matrices, and the sparse matrices are not supported in this version.

template <typename T>
class matrix;

To use Matrix TCL in your program, include the file cmatrix in the program source file. The matrix class is defined in a separate namespace, named techsoft, so you also need to include using directive for this namespace in your program source file.

#include <cmatrix>

using namespace std;
using namespace techsoft;

typedef matrix<double> Matrix;
typedef matrix<complex<double> > 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: