|
| Matrix () |
| Create an empty matrix with 0 row and 0 columns. More...
|
|
| Matrix (Size newNumRows) |
| Create an uninitialized column vector with the specified number of rows. More...
|
|
| Matrix (Size newNumRows, Size newNumColumns) |
| Create an uninitialized matrix with the specified number of rows and columns. More...
|
|
| Matrix (Size newNumRows, Size newNumColumns, const T &initializer) |
| Create a matrix with the specified number of rows, columns, and scalar initilizer. More...
|
|
| Matrix (Size newNumRows, Size newNumColumns, const T *initializer) |
| Create a matrix from a pointer to an array with elements specified in column-major order. More...
|
|
| Matrix (const MatrixND< T, 2, 2 > &matrix) |
| Create a matrix copy of the specified 2x2 matrix. More...
|
|
| Matrix (const MatrixND< T, 3, 3 > &matrix) |
| Create a matrix copy of the specified 3x3 matrix. More...
|
|
template<Size newNumRows, Size newNumColumns> |
| Matrix (const MatrixND< T, newNumRows, newNumColumns > &matrix) |
| Create a matrix copy of the specified MxN matrix. More...
|
|
template<Size newNumRows> |
| Matrix (const VectorND< T, newNumRows > &vector) |
| Create a matrix copy of the specified N-component column vector. More...
|
|
| Matrix (const Matrix &other) |
| Create a copy of another matrix. More...
|
|
template<typename U > |
| Matrix (const Matrix< U > &other) |
| Create a copy of another matrix of a different scalar type. More...
|
|
| ~Matrix () |
| Destroy this matrix object, release its reference to the internal storage. More...
|
|
Matrix & | operator= (const Matrix &other) |
| Assign the contents of another matrix to this one. More...
|
|
VectorND< Size, 2 > | getSize () const |
| Return a 2D vector indicating the (row count, column count) in this matrix. More...
|
|
void | setSize (Size newNumRows, Size newNumColumns) |
| Change the size of this matrix without initializing the new matrix. More...
|
|
void | setSize (Size newNumRows, Size newNumColumns, const T &initializer) |
| Change the size of this matrix, filling the new entries with the specified value. More...
|
|
Size | getSizeInBytes () const |
| Return the approximate total size of this matrix's storage in bytes. More...
|
|
T * | getScalars () |
| Return a pointer to the column-major storage for this matrix's elements. More...
|
|
const T * | getScalars () const |
| Return a const pointer to the column-major storage for this matrix's elements. More...
|
|
Size | getScalarCount () const |
| Return the total number of scalars that are stored in this matri. 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...
|
|
void | set (Index rowIndex, Index columnIndex, const T &value) |
| Set the element at the specified (row, column) in the matrix. More...
|
|
void | setAll (const T &scalar) |
| Set all of the elements in the matrix to the specified scalar value. More...
|
|
void | zero () |
| Set all of the elements in the matrix to zero. 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...
|
|
Bool | isNull () const |
| Return whether or not this matrix's internal storage is not allocated. More...
|
|
Bool | isSet () const |
| Return whether or not this matrix's internal storage is allocated. More...
|
|
Size | getColumnCount () const |
| Return the number of columns that this matrix has. More...
|
|
Matrix | getColumn (Index columnIndex) |
| Return a reference to the column at the specified index in the matrix. More...
|
|
Bool | setColumn (Index columnIndex, const Matrix &newColumn) |
| Set the column vector at the specified index in the matrix. More...
|
|
Size | getRowCount () const |
| Return the number of rows that this matrix has. More...
|
|
Matrix | getRow (Index rowIndex) const |
| Return the row at the specified index in the matrix. More...
|
|
Bool | setRow (Index rowIndex, const Matrix &newRow) |
| Set the row vector at the specified index in the matrix. More...
|
|
Matrix | transpose () const |
| Return the inverse of the matrix if it has one. More...
|
|
void | transpose (Matrix &result) const |
| Write the transpose of this matrix to the output parameter. More...
|
|
Bool | operator== (const Matrix &other) const |
| Return whether or not every element in this matrix is equal to that in another matrix. More...
|
|
Bool | operator!= (const Matrix< T > &other) const |
| Return whether or not some element in this matrix is not equal to that in another matrix. More...
|
|
Matrix | operator- () const |
| Negate every element of this matrix and return the resulting matrix. More...
|
|
const Matrix & | operator+ () const |
| 'Positivate' every element of this matrix, returning a copy of the original matrix. More...
|
|
Matrix | operator+ (const Matrix &matrix) const |
| Add this matrix to another and return the resulting matrix. More...
|
|
Matrix | operator+ (const T &scalar) const |
| Add a scalar to the elements of this matrix and return the resulting matrix. More...
|
|
Matrix | operator- (const Matrix &matrix) const |
| Add this matrix to another and return the resulting matrix. More...
|
|
Matrix | operator- (const T &scalar) const |
| Subtract a scalar from the elements of this matrix and return the resulting matrix. More...
|
|
Matrix | operator* (const Matrix &matrix) const |
| Multiply a matrix by this matrix and return the result. More...
|
|
Matrix | operator* (const T &scalar) const |
| Multiply the elements of this matrix by a scalar and return the resulting matrix. More...
|
|
Matrix | operator/ (const T &scalar) const |
| Divide the elements of this matrix by a scalar and return the resulting matrix. More...
|
|
Matrix & | operator+= (const Matrix &matrix) |
| Add the elements of another matrix to this matrix. More...
|
|
Matrix & | operator+= (const T &scalar) |
| Add a scalar value to the elements of this matrix. More...
|
|
Matrix & | operator-= (const Matrix &matrix) |
| Subtract the elements of another matrix from this matrix. More...
|
|
Matrix & | operator-= (const T &scalar) |
| Subtract a scalar value from the elements of this matrix. More...
|
|
Matrix & | operator*= (const T &scalar) |
| Multiply the elements of this matrix by a scalar value. More...
|
|
Matrix & | operator/= (const T &scalar) |
| 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>
class om::math::Matrix< T >
A class that represents a matrix of an arbitrary number of rows and columns.