DiFfRG
Loading...
Searching...
No Matches
DiFfRG::SimpleMatrix< NT, N, M > Class Template Reference

A simple NxM-matrix class, which is used for cell-wise Jacobians. More...

#include <tuples.hh>

Public Member Functions

 SimpleMatrix ()
 
NT & operator() (const uint n, const uint m)
 Access the matrix entry at (n,m).
 
const NT & operator() (const uint n, const uint m) const
 Access the matrix entry at (n,m).
 
void clear ()
 Set all entries to zero.
 
bool is_finite () const
 Check whether the matrix contains only finite values.
 
void print () const
 Print the matrix to the console.
 

Private Attributes

std::array< NT, N *M > data
 

Detailed Description

template<typename NT, uint N, uint M = N>
class DiFfRG::SimpleMatrix< NT, N, M >

A simple NxM-matrix class, which is used for cell-wise Jacobians.

Constructor & Destructor Documentation

◆ SimpleMatrix()

template<typename NT , uint N, uint M = N>
DiFfRG::SimpleMatrix< NT, N, M >::SimpleMatrix ( )
inline

Member Function Documentation

◆ clear()

template<typename NT , uint N, uint M = N>
void DiFfRG::SimpleMatrix< NT, N, M >::clear ( )
inline

Set all entries to zero.

◆ is_finite()

template<typename NT , uint N, uint M = N>
bool DiFfRG::SimpleMatrix< NT, N, M >::is_finite ( ) const
inline

Check whether the matrix contains only finite values.

◆ operator()() [1/2]

template<typename NT , uint N, uint M = N>
NT & DiFfRG::SimpleMatrix< NT, N, M >::operator() ( const uint n,
const uint m )
inline

Access the matrix entry at (n,m).

◆ operator()() [2/2]

template<typename NT , uint N, uint M = N>
const NT & DiFfRG::SimpleMatrix< NT, N, M >::operator() ( const uint n,
const uint m ) const
inline

Access the matrix entry at (n,m).

◆ print()

template<typename NT , uint N, uint M = N>
void DiFfRG::SimpleMatrix< NT, N, M >::print ( ) const
inline

Print the matrix to the console.

Member Data Documentation

◆ data

template<typename NT , uint N, uint M = N>
std::array<NT, N * M> DiFfRG::SimpleMatrix< NT, N, M >::data
private

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