faunus
Public Member Functions | List of all members
Faunus::Tabulate::Andrea< T > Class Template Reference

Andrea table with logarithmic search. More...

#include <tabulate.h>

Inheritance diagram for Faunus::Tabulate::Andrea< T >:
Inheritance graph
[legend]
Collaboration diagram for Faunus::Tabulate::Andrea< T >:
Collaboration graph
[legend]

Public Member Functions

T eval (const typename base::data &d, T r2) const
 Get tabulated value at f(x) More...
 
T evalDer (const typename base::data &d, T r2) const
 Get tabulated value at df(x)/dx. More...
 
base::data generate (std::function< T(T)> f, double rmin, double rmax)
 Tabulate f(x) in interval ]min,max].
 
- Public Member Functions inherited from Faunus::Tabulate::TabulatorBase< T >
void setTolerance (T _utol, T _ftol=-1, T _umaxtol=-1, T _fmaxtol=-1)
 
void setNumdr (T _numdr)
 

Additional Inherited Members

- Protected Member Functions inherited from Faunus::Tabulate::TabulatorBase< T >
T f1 (std::function< T(T)> f, T x) const
 
T f2 (std::function< T(T)> f, T x) const
 
void check () const
 
- Protected Attributes inherited from Faunus::Tabulate::TabulatorBase< T >
T utol = 1e-5
 
T ftol = -1
 
T umaxtol = -1
 
T fmaxtol = -1
 
T numdr = 0.0001
 

Detailed Description

template<std::floating_point T = double>
class Faunus::Tabulate::Andrea< T >

Andrea table with logarithmic search.

Tabulator with logarithmic search. Code mainly from MolSim (Per Linse) with some upgrades Reference: doi:10/frzp4d

Note
Slow on Intel compiler
Todo:
Hide data and functions; clean up r vs r2 mess.

Member Function Documentation

◆ eval()

template<std::floating_point T = double>
T Faunus::Tabulate::Andrea< T >::eval ( const typename base::data d,
T  r2 
) const
inline

Get tabulated value at f(x)

Parameters
dTable data
r2value
Note
Auto-vectorization in Clang: https://llvm.org/docs/Vectorizers.html

◆ evalDer()

template<std::floating_point T = double>
T Faunus::Tabulate::Andrea< T >::evalDer ( const typename base::data d,
T  r2 
) const
inline

Get tabulated value at df(x)/dx.

Parameters
dTable data
r2value

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