Matrix
Description
Matrix is a two-dimensional array of real numbers. It is most widely used when performing mathematical calculations on groups of data. It is also possible to create an image from matrix (see: MatrixToImage.)
class Matrix : public Array2D< real > { public: // Constructors Matrix() : Array2D< real >(); Matrix(int nRows, int nCols) : Array2D< real >(nRows, nCols); Matrix(int nRows, int nCols, const real* data); Matrix(int nRows, int nCols, const real& value); Matrix( const Matrix& rhs ) : Array2D< real >(rhs); Matrix( const Array< real >& rhs ); Matrix& operator = ( const Matrix& rhs ); Matrix operator * ( real c ) const; Matrix operator * ( const Matrix& rhs ) const; Matrix operator + ( const Matrix& rhs ) const; Matrix operator += ( const Matrix& rhs ); bool operator == ( const Matrix& rhs ) const; bool operator != ( const Matrix& rhs ) const; static Matrix eye( int n ); Matrix t() const; real* Data(); const real* Data() const; };