tfel
Loading...
Searching...
No Matches
tfel::math::anderson::CovarianceMatrix< real > Struct Template Reference

Covariance matrix. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/AccelerationAlgorithms/CovarianceMatrix.hxx>

Public Types

using pointer = typename std::vector<real>::iterator
 a simple alias
using const_pointer = typename std::vector<real>::const_iterator
 a simple alias
using size_type = unsigned char
 a simple alias

Public Member Functions

 CovarianceMatrix ()
 Default constructor.
 CovarianceMatrix (size_type Nmax)
virtual ~CovarianceMatrix ()
 Destructor.
void resize (size_type Nmax)
size_type getSize () const
pointer getLine (size_type N)
void shift ()
void weightsGSchmidtD (std::vector< real > &)
void alloc ()
 Memory allocation.
void clear ()
 Memory deletion.
void GSFactorD ()

Public Attributes

size_type Nmax = 0
 Maximal matrix size.
size_type N = 0
 Current Depth of Anderson acceleration.
std::vector< real > C
 Covariances.
std::vector< real > a
 Covariance factors.
std::vector< real > ne

Detailed Description

template<typename real>
struct tfel::math::anderson::CovarianceMatrix< real >

Covariance matrix.

Constructor & Destructor Documentation

◆ CovarianceMatrix()

template<typename real>
tfel::math::anderson::CovarianceMatrix< real >::CovarianceMatrix ( size_type Nmax)
explicit

Constructor

Parameters
NmaxMatrix size

Member Function Documentation

◆ getLine()

template<typename real>
CovarianceMatrix< real >::pointer tfel::math::anderson::CovarianceMatrix< real >::getLine ( size_type N)
nodiscard
Parameters
NLine index
Returns
the address of the Nth line

◆ getSize()

template<typename real>
CovarianceMatrix< real >::size_type tfel::math::anderson::CovarianceMatrix< real >::getSize ( ) const
nodiscard
Returns
the matrix size

◆ GSFactorD()

template<typename real>
void tfel::math::anderson::CovarianceMatrix< real >::GSFactorD ( )

Gram-Schmidt Factorisation Descendent order

◆ resize()

template<typename real>
void tfel::math::anderson::CovarianceMatrix< real >::resize ( size_type Nmax)

Resize the matrix

Parameters
NmaxMatrix size

◆ weightsGSchmidtD()

template<typename real>
void tfel::math::anderson::CovarianceMatrix< real >::weightsGSchmidtD ( std::vector< real > & w)

Anderson weights by Gram-Schmidt process Descendent order

Parameters
wanderson weights

The documentation for this struct was generated from the following files: