|
ug4
|
A class for fixed size, dense matrices. More...
#include <math_symmetric_matrix.h>
Public Types | |
| typedef std::size_t | size_type |
| typedef T | value_type |
Public Member Functions | |
| value_type & | entry (std::size_t row, std::size_t col) |
| const value_type & | entry (std::size_t row, std::size_t col) const |
| value_type | fnorm () |
| MathSymmetricMatrix () | |
| MathSymmetricMatrix (const MathSymmetricMatrix &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 MathSymmetricMatrix &v) const |
| Multiplies the matrix element-wise with another matrix and sums up the entries. | |
| MathSymmetricMatrix & | operator*= (const value_type &val) |
| Multiplies all elements of the matrix with the given value. | |
| MathSymmetricMatrix & | operator+= (const MathSymmetricMatrix &B) |
| Adds a matrix to 'this' one: \( A_{this} \leftarrow A_{this} + B\). | |
| MathSymmetricMatrix & | operator+= (const value_type &val) |
| Adds the given value to all elements of the matrix. | |
| MathSymmetricMatrix & | operator-= (const MathSymmetricMatrix &B) |
| Subtracts a matrix from 'this' one: \( A_{this} \leftarrow A_{this} - B\). | |
| MathSymmetricMatrix & | operator-= (const value_type &val) |
| Subtracts the given value from all elements of the matrix. | |
| MathSymmetricMatrix & | operator/= (const value_type &val) |
| Divides all elements of the matrix by the given value. | |
| MathSymmetricMatrix & | operator= (const MathSymmetricMatrix &v) |
| Assigns the elements of the given matrix to this one. | |
| MathSymmetricMatrix & | 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 |
| void | scale_by_fnorm () |
Static Public Attributes | |
| static const std::size_t | ColSize = N |
| static const std::size_t | RowSize = N |
Protected Member Functions | |
| void | assign (const MathSymmetricMatrix &v) |
Protected Attributes | |
| value_type | m_data [m_size] |
Static Protected Attributes | |
| static const size_t | m_size = (size_t)((N*N+N)/2) |
A class for fixed size, dense matrices.
A static memory NxN symmetric matrix