next up previous contents
Next: 2.2 Constructors Up: 2 Public Functionality Previous: 2 Public Functionality   Contents

2.1 Types

EMatrix is a template library in two respects, that of type and size. The library has been been tested around the C++ primitives as well as the <complex> type in the standard C++ library. Memory is statically allocated and the validity with respect to the dimensions of matrix algebraic operations is verified at compile time.

Template Definition:

  template < typename tData, int tRows, int tCols >
  class Matrix { ... }

Examples:

  Matrix < unsigned char, 64, 64 > Image;
  Matrix < int, 6, 1 > Permutation;
  Matrix < float, 1, 3 > ColVector;
  Matrix < double, 3, 1 > RowVector;
  Matrix < complex < double >, 3, 3 > Z;



Andrew Douglas 2005-03-15