|
Assignments
Assignments
|
#include <geometry.h>
Public Member Functions | |
| _BaseMatrix (void) | |
| double & | operator() (int r, int c) |
| const double & | operator() (int r, int c) const |
| MatrixTransposeType | transpose (void) const |
| Point< Rows > | operator* (const Point< Cols > &p) const |
| MatrixType | operator* (double s) const |
| MatrixType | operator+ (const MatrixType &m) const |
| double | dot (const _BaseMatrix &p) const |
Private Attributes | |
| double | _m [Rows][Cols] |
This templated class represents a general rectangular, Rows x Cols, matrix that is the base for both rectangular and square matrices Matrices are stored in row-major order.
| Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::_BaseMatrix | ( | void | ) |
The default constructor generates a zero matrix
| double Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::dot | ( | const _BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType > & | p | ) | const |
Dot-product method for inner-product space
| double & Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::operator() | ( | int | r, |
| int | c ) |
This method returns the entry of the matrix in the r-th row and the c-th column.
| const double & Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::operator() | ( | int | r, |
| int | c ) const |
This method returns the entry of the matrix in the r-th row and the c-th column.
| Point< Rows > Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::operator* | ( | const Point< Cols > & | p | ) | const |
This method transforms a Dim-dimensional point by applying the linear transformation.
| MatrixType Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::operator* | ( | double | s | ) | const |
Scaling method for vector space
| MatrixType Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::operator+ | ( | const MatrixType & | m | ) | const |
Addition method for vector space
| MatrixTransposeType Util::_BaseMatrix< Rows, Cols, MatrixType, MatrixTransposeType >::transpose | ( | void | ) | const |
This method returns the transpose of a matrix.
|
private |
The actual matrix entries