ug4
ug::MathSymmetricMatrix< N, T > Class Template Reference

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_typeentry (std::size_t row, std::size_t col)
 
const value_typeentry (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_typeoperator() (std::size_t row, std::size_t col)
 
const value_typeoperator() (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. More...
 
MathSymmetricMatrixoperator*= (const value_type &val)
 Multiplies all elements of the matrix with the given value. More...
 
MathSymmetricMatrixoperator+= (const MathSymmetricMatrix &B)
 Adds a matrix to 'this' one: \( A_{this} \leftarrow A_{this} + B\). More...
 
MathSymmetricMatrixoperator+= (const value_type &val)
 Adds the given value to all elements of the matrix. More...
 
MathSymmetricMatrixoperator-= (const MathSymmetricMatrix &B)
 Subtracts a matrix from 'this' one: \( A_{this} \leftarrow A_{this} - B\). More...
 
MathSymmetricMatrixoperator-= (const value_type &val)
 Subtracts the given value from all elements of the matrix. More...
 
MathSymmetricMatrixoperator/= (const value_type &val)
 Divides all elements of the matrix by the given value. More...
 
MathSymmetricMatrixoperator= (const MathSymmetricMatrix &v)
 Assigns the elements of the given matrix to this one. More...
 
MathSymmetricMatrixoperator= (const value_type &val)
 Assigns the given value to all elements of the matrix. More...
 
value_typeoperator[] (std::size_t index)
 
const value_typeoperator[] (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)
 

Detailed Description

template<std::size_t N, typename T = number>
class ug::MathSymmetricMatrix< N, T >

A class for fixed size, dense matrices.

A static memory NxN symmetric matrix


The documentation for this class was generated from the following file: