NeoPZ
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Adapt Struct Reference

#include <adapt.h>

Public Member Functions

 Adapt (REAL tol)
 
void SetPrecision (REAL tol)
 
template<class T >
REAL integrate (T &func, const REAL a, const REAL b)
 
template<class T >
TPZVec< REAL > Vintegrate (T &func, const int dim, const REAL a, const REAL b)
 

Private Member Functions

template<class T >
REAL adaptlob (T &func, const REAL a, const REAL b, const REAL fa, const REAL fb, const REAL is)
 
template<class T >
REAL adaptlob (T &func, const int pos, const REAL a, const REAL b, const REAL fa, const REAL fb, const REAL is)
 

Private Attributes

REAL TOL
 
REAL toler
 
bool terminate
 
bool out_of_tolerance
 

Static Private Attributes

static const REAL alpha
 
static const REAL beta
 
static const REAL x1
 
static const REAL x2
 
static const REAL x3
 
static const REAL x [12]
 

Detailed Description

Numerical Recipes - The art of Scientific Computing 3rd Edition

William H. Press Saul A. Teukolsky William T. Vetterling Brian P. Flannery

Definition at line 18 of file adapt.h.

Constructor & Destructor Documentation

◆ Adapt()

Adapt::Adapt ( REAL  tol)
inline

Definition at line 49 of file adapt.h.

References TOL.

Member Function Documentation

◆ adaptlob() [1/2]

template<class T >
REAL Adapt::adaptlob ( T &  func,
const REAL  a,
const REAL  b,
const REAL  fa,
const REAL  fb,
const REAL  is 
)
inlineprivate

Definition at line 143 of file adapt.h.

References abs(), alpha, beta, h, m, out_of_tolerance, terminate, toler, and val().

Referenced by adaptlob(), integrate(), and Vintegrate().

◆ adaptlob() [2/2]

template<class T >
REAL Adapt::adaptlob ( T &  func,
const int  pos,
const REAL  a,
const REAL  b,
const REAL  fa,
const REAL  fb,
const REAL  is 
)
inlineprivate

Definition at line 178 of file adapt.h.

References abs(), adaptlob(), alpha, beta, h, m, out_of_tolerance, terminate, toler, and val().

◆ integrate()

template<class T >
REAL Adapt::integrate ( T &  func,
const REAL  a,
const REAL  b 
)
inline

Definition at line 64 of file adapt.h.

References abs(), adaptlob(), h, m, TOL, toler, and x.

◆ SetPrecision()

void Adapt::SetPrecision ( REAL  tol)
inline

Definition at line 58 of file adapt.h.

References pzgeom::tol, and TOL.

◆ Vintegrate()

template<class T >
TPZVec< REAL > Adapt::Vintegrate ( T &  func,
const int  dim,
const REAL  a,
const REAL  b 
)
inline

Definition at line 95 of file adapt.h.

References abs(), adaptlob(), h, m, TOL, toler, and x.

Member Data Documentation

◆ alpha

const REAL Adapt::alpha
staticprivate

Definition at line 45 of file adapt.h.

Referenced by adaptlob().

◆ beta

const REAL Adapt::beta
staticprivate

Definition at line 45 of file adapt.h.

Referenced by adaptlob().

◆ out_of_tolerance

bool Adapt::out_of_tolerance
private

Definition at line 44 of file adapt.h.

Referenced by adaptlob().

◆ terminate

bool Adapt::terminate
private

Definition at line 44 of file adapt.h.

Referenced by adaptlob().

◆ TOL

REAL Adapt::TOL
private

Definition at line 43 of file adapt.h.

Referenced by Adapt(), integrate(), SetPrecision(), and Vintegrate().

◆ toler

REAL Adapt::toler
private

Definition at line 43 of file adapt.h.

Referenced by adaptlob(), integrate(), and Vintegrate().

◆ x

const REAL Adapt::x
staticprivate

Definition at line 45 of file adapt.h.

Referenced by integrate(), and Vintegrate().

◆ x1

const REAL Adapt::x1
staticprivate

Definition at line 45 of file adapt.h.

◆ x2

const REAL Adapt::x2
staticprivate

Definition at line 45 of file adapt.h.

◆ x3

const REAL Adapt::x3
staticprivate

Definition at line 45 of file adapt.h.


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