|
ug4
|
A class for fixed size, dense matrices. More...
#include <math_matrix.h>
Public Types | |
| typedef std::size_t | size_type |
| typedef T | value_type |
Public Member Functions | |
| void | assign (const MathVector< N, value_type > &vec, const std::size_t row) |
| value_type & | entry (std::size_t row, std::size_t col) |
| const value_type & | entry (std::size_t row, std::size_t col) const |
| MathMatrix () | |
| MathMatrix (const MathMatrix &v) | |
| std::size_t | num_cols () const |
| std::size_t | num_rows () const |
| value_type & | operator() (std::size_t row, std::size_t col) |
| const value_type & | operator() (std::size_t row, std::size_t col) const |
| value_type | operator* (const MathMatrix &v) const |
| Multiplies the matrix element-wise with another matrix and sums up the entries. | |
| MathMatrix & | operator*= (const value_type &val) |
| Multiplies all elements of the matrix with the given value. | |
| MathMatrix & | operator+= (const MathMatrix &B) |
| Adds a matrix to 'this' one: \( A_{this} \leftarrow A_{this} + B\). | |
| MathMatrix & | operator+= (const value_type &val) |
| Adds the given value to all elements of the matrix. | |
| MathMatrix & | operator-= (const MathMatrix &B) |
| Subtracts a matrix from 'this' one: \( A_{this} \leftarrow A_{this} - B\). | |
| MathMatrix & | operator-= (const value_type &val) |
| Subtracts the given value from all elements of the matrix. | |
| MathMatrix & | operator/= (const value_type &val) |
| Divides all elements of the matrix by the given value. | |
| MathMatrix & | operator= (const MathMatrix &v) |
| Assigns the elements of the given matrix to this one. | |
| MathMatrix & | operator= (const value_type &val) |
| Assigns the given value to all elements of the matrix. | |
| value_type * | operator[] (std::size_t index) |
| const value_type * | operator[] (std::size_t index) const |
Static Public Attributes | |
| static const std::size_t | ColSize = M |
| static const std::size_t | RowSize = N |
Protected Member Functions | |
| void | assign (const MathMatrix &v) |
Protected Attributes | |
| value_type | m_data [N][M] |
A class for fixed size, dense matrices.
A static memory NxM matrix
| typedef std::size_t ug::MathMatrix< N, M, T >::size_type |
| typedef T ug::MathMatrix< N, M, T >::value_type |
|
inline |
|
inline |
References ug::MathMatrix< N, M, T >::assign().
|
inlineprotected |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
References ug::MathMatrix< N, M, T >::m_data, ug::MathVector< N, T >::Size, and UG_ASSERT.
Referenced by ug::MathMatrix< N, M, T >::MathMatrix(), and ug::MathMatrix< N, M, T >::operator=().
|
inline |
Referenced by ug::operator<<(), ug::operator<<(), ug::operator<<(), ug::operator<<(), and ug::operator<<().
|
inline |
|
inline |
Referenced by ug::IsFiniteAndNotTooBig(), and ug::Transpose().
|
inline |
Referenced by ug::IsFiniteAndNotTooBig(), and ug::Transpose().
|
inline |
References ug::MathMatrix< N, M, T >::m_data, and UG_ASSERT.
|
inline |
References ug::MathMatrix< N, M, T >::m_data, and UG_ASSERT.
|
inline |
Multiplies the matrix element-wise with another matrix and sums up the entries.
| v | The Matrix. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
Multiplies all elements of the matrix with the given value.
| val | The factor. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
Adds a matrix to 'this' one: \( A_{this} \leftarrow A_{this} + B\).
| B | The matrix to be added. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
Adds the given value to all elements of the matrix.
| val | The value to be added. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
Subtracts a matrix from 'this' one: \( A_{this} \leftarrow A_{this} - B\).
| B | The matrix to be subtracted. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
Subtracts the given value from all elements of the matrix.
| val | The value to be subtracted. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
Divides all elements of the matrix by the given value.
| val | The divisor. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
Assigns the elements of the given matrix to this one.
| v | The matrix to be assigned. |
References ug::MathMatrix< N, M, T >::assign().
|
inline |
Assigns the given value to all elements of the matrix.
| val | The value to be assigned to the matrix. |
References ug::MathMatrix< N, M, T >::m_data.
|
inline |
References ug::MathMatrix< N, M, T >::m_data, and UG_ASSERT.
|
inline |
References ug::MathMatrix< N, M, T >::m_data, and UG_ASSERT.
|
static |
|
protected |
Referenced by ug::MathMatrix< N, M, T >::assign(), ug::MathMatrix< N, M, T >::assign(), ug::MathMatrix< N, M, T >::operator()(), ug::MathMatrix< N, M, T >::operator()(), ug::MathMatrix< N, M, T >::operator*(), ug::MathMatrix< N, M, T >::operator*=(), ug::MathMatrix< N, M, T >::operator+=(), ug::MathMatrix< N, M, T >::operator+=(), ug::MathMatrix< N, M, T >::operator-=(), ug::MathMatrix< N, M, T >::operator-=(), ug::MathMatrix< N, M, T >::operator/=(), ug::MathMatrix< N, M, T >::operator=(), ug::MathMatrix< N, M, T >::operator[](), and ug::MathMatrix< N, M, T >::operator[]().
|
static |