A class that represents a matrix of a fixed arbitrary number of rows and columns.
More...
|
| | MatrixND () |
| | Create a matrix with its elements all equal to zero. More...
|
| |
| | MatrixND (const T array[numRows *numColumns]) |
| | Create a matrix from a pointer to an array with elements specified in column-major order. More...
|
| |
| T * | toArrayColumnMajor () |
| | Return a pointer to the matrix's elements in colunn-major order. More...
|
| |
| const T * | toArrayColumnMajor () const |
| | Return a pointer to the matrix's elements in colunn-major order. More...
|
| |
| VectorND< T, numRows > & | getColumn (Index columnIndex) |
| | Return a reference to the column at the specified index in the matrix. More...
|
| |
| const VectorND< T, numRows > & | getColumn (Index columnIndex) const |
| | Return a const reference to the column at the specified index in the matrix. More...
|
| |
| VectorND< T, numRows > & | operator() (Index columnIndex) |
| | Return a reference to the column at the specified index in the matrix. More...
|
| |
| const VectorND< T, numRows > & | operator() (Index columnIndex) const |
| | Return a const reference to the column at the specified index in the matrix. More...
|
| |
| VectorND< T, numRows > & | operator[] (Index columnIndex) |
| | Return a reference the column at the specified index in the matrix. More...
|
| |
| const VectorND< T, numRows > & | operator[] (Index columnIndex) const |
| | Return a const reference to the column at the specified index in the matrix. More...
|
| |
| VectorND< T, numColumns > | getRow (Index rowIndex) const |
| | Return the row at the specified index in the matrix. More...
|
| |
| T & | get (Index rowIndex, Index columnIndex) |
| | Return the element at the specified (row, column) in the matrix. More...
|
| |
| const T & | get (Index rowIndex, Index columnIndex) const |
| | Return the element at the specified (row, column) in the matrix. More...
|
| |
| T & | operator() (Index rowIndex, Index columnIndex) |
| | Return the element at the specified (row, column) in the matrix. More...
|
| |
| const T & | operator() (Index rowIndex, Index columnIndex) const |
| | Return the element at the specified (row, column) in the matrix. More...
|
| |
| void | setColumn (Index columnIndex, const VectorND< T, numRows > &newColumn) |
| | Set the column vector at the specified index in the matrix. More...
|
| |
| void | setRow (Index rowIndex, const VectorND< T, numColumns > &newRow) |
| | Set the row vector at the specified index in the matrix. More...
|
| |
| void | set (Index rowIndex, Index columnIndex, T value) |
| | Get the element at the specified (row, column) in the matrix. More...
|
| |
| T | getDeterminant () const |
| | Get the determinant of the matrix. More...
|
| |
| MatrixND | invert () const |
| | Get the inverse of the matrix if it has one. More...
|
| |
| MatrixND | orthonormalize () const |
| | Return the orthonormalization of this matrix. More...
|
| |
| MatrixND< T, numColumns, numRows > | transpose () const |
| | Return the transpose of this matrix. More...
|
| |
| Bool | operator== (const MatrixND< T, numRows, numColumns > &matrix) const |
| | Return whether or not every component in this matrix is equal to that in another matrix. More...
|
| |
| Bool | operator!= (const MatrixND< T, numRows, numColumns > &matrix) const |
| | Return whether or not some component in this matrix is not equal to that in another matrix. More...
|
| |
| MatrixND | operator- () const |
| | Negate every element of this matrix and return the resulting matrix. More...
|
| |
| MatrixND | operator+ () const |
| | 'Positivate' every element of this matrix, returning a copy of the original matrix. More...
|
| |
| MatrixND | operator+ (const MatrixND< T, numRows, numColumns > &matrix) const |
| | Add this matrix to another and return the resulting matrix. More...
|
| |
| MatrixND | operator+ (const T &value) const |
| | Add a scalar to the elements of this matrix and return the resulting matrix. More...
|
| |
| MatrixND | operator- (const MatrixND< T, numRows, numColumns > &matrix) const |
| | Add this matrix to another and return the resulting matrix. More...
|
| |
| MatrixND | operator- (const T &value) const |
| | Subtract a scalar from the elements of this matrix and return the resulting matrix. More...
|
| |
| template<Size otherColumnDimension> |
| MatrixND< T, numRows, otherColumnDimension > | operator* (const MatrixND< T, numColumns, otherColumnDimension > &matrix) |
| | Multiply a matrix by this matrix and return the result. More...
|
| |
| VectorND< T, numRows > | operator* (const VectorND< T, numColumns > &vector) |
| | Multiply a vector/point by this matrix and return the result. More...
|
| |
| MatrixND | operator* (const T &value) const |
| | Multiply the elements of this matrix by a scalar and return the resulting matrix. More...
|
| |
| MatrixND | operator/ (const T &value) const |
| | Divide the elements of this matrix by a scalar and return the resulting matrix. More...
|
| |
| MatrixND & | operator+= (const MatrixND< T, numRows, numColumns > &matrix) |
| | Add the elements of another matrix to this matrix. More...
|
| |
| MatrixND & | operator+= (const T &value) |
| | Add a scalar value to the elements of this matrix. More...
|
| |
| MatrixND & | operator-= (const MatrixND< T, numRows, numColumns > &matrix) |
| | Subtract the elements of another matrix from this matrix. More...
|
| |
| MatrixND & | operator-= (const T &value) |
| | Subtract a scalar value from the elements of this matrix. More...
|
| |
| MatrixND & | operator*= (const T &value) |
| | Multiply the elements of this matrix by a scalar value. More...
|
| |
| MatrixND & | operator/= (const T &value) |
| | Divide the elements of this matrix by a scalar value. More...
|
| |
| data::String | toString () const |
| | Convert this matrix into a human-readable string representation. More...
|
| |
| | operator data::String () const |
| | Convert this matrix into a human-readable string representation. More...
|
| |
template<typename T, Size numRows, Size numColumns>
class om::math::MatrixND< T, numRows, numColumns >
A class that represents a matrix of a fixed arbitrary number of rows and columns.