tfel
Loading...
Searching...
No Matches
tfel::math::AndersonBase< Field, real > Struct Template Reference

Weights for the Anderson accelation algorithm. More...

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

Inheritance diagram for tfel::math::AndersonBase< Field, real >:
tfel::math::FAnderson< Field, long double > tfel::math::UAnderson< Field, long double > tfel::math::FAnderson< Field, real > tfel::math::UAnderson< Field, real >

Public Types

using size_type = unsigned char
 a simple alias
using Allocator = std::function<Field*()>
 memory allocator

Public Member Functions

 AndersonBase (const Allocator)
 constructor
const std::vector< Field * > & getU () const
const std::vector< Field * > & getD () const
void setAnderson (const size_type, const size_type)
 Set Anderson algorithm.
virtual ~AndersonBase ()
 Destructor.

Protected Member Functions

void alloc ()
 Memory allocation.
size_type size () const
void reset ()
 Reseting the Covariance matrix with a new vector.

Protected Attributes

anderson::CovarianceMatrix< real > cM
 Covariance matrix.
std::vector< Field * > u
 Deplacement Fields.
std::vector< Field * > D
Allocator ma
 memory allocator
size_type n = size_type{}
 Number of stored solutions.
std::vector< real > w
 Anderson weights.
size_type alt = 0
size_type alMax = 0

Detailed Description

template<typename Field, typename real>
struct tfel::math::AndersonBase< Field, real >

Weights for the Anderson accelation algorithm.

Member Function Documentation

◆ setAnderson()

template<typename Field, typename real>
void tfel::math::AndersonBase< Field, real >::setAnderson ( const size_type Nmax_i,
const size_type alMax_i )

Set Anderson algorithm.

Parameters
Nmaxmethod order
alMaxalternance order

◆ size()

template<typename Field, typename real>
AndersonBase< Field, real >::size_type tfel::math::AndersonBase< Field, real >::size ( ) const
nodiscardprotected
Returns
the Anderson method order

Member Data Documentation

◆ D

template<typename Field, typename real>
std::vector<Field*> tfel::math::AndersonBase< Field, real >::D
protected

Result fields

◆ n

template<typename Field, typename real>
size_type tfel::math::AndersonBase< Field, real >::n = size_type{}
protected

Number of stored solutions.

Number of stored displacement fields


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