1.4.0
CCC
 
PrecisionOp Class Reference

#include <PrecisionOp.hpp>

Inheritance diagram for PrecisionOp:
ASimulable ALinearOp PrecisionOpCs

Public Member Functions

 PrecisionOp ()
 
 PrecisionOp (ShiftOpCs *shiftop, const CovAniso *cova, bool verbose=false)
 
 PrecisionOp (const AMesh *mesh, CovAniso *cova, bool verbose=false)
 
 PrecisionOp (const PrecisionOp &pmat)
 
PrecisionOpoperator= (const PrecisionOp &pmat)
 
virtual ~PrecisionOp ()
 
virtual void evalInverse (const Eigen::VectorXd &vecin, Eigen::VectorXd &vecout)
 
virtual std::pair< double, double > getRangeEigenVal (int ndiscr=100)
 
int reset (const ShiftOpCs *shiftop, const CovAniso *cova=nullptr, bool verbose=false)
 
virtual double getLogDeterminant (int nbsimu=1)
 
virtual void gradYQX (const Eigen::VectorXd &, const Eigen::VectorXd &, Eigen::VectorXd &, const EPowerPT &)
 
virtual void gradYQXOptim (const Eigen::VectorXd &, const Eigen::VectorXd &, Eigen::VectorXd &, const EPowerPT &)
 
virtual void evalDeriv (const Eigen::VectorXd &, Eigen::VectorXd &, int, int, const EPowerPT &)
 
virtual void evalDerivOptim (Eigen::VectorXd &, int, int, const EPowerPT &)
 
std::vector< Eigen::VectorXd > simulate (int nbsimu=1)
 
void evalPower (const Eigen::VectorXd &inm, Eigen::VectorXd &outm, const EPowerPT &power=EPowerPT::fromKey("ONE"))
 
VectorDouble evalCov (int imesh)
 
VectorDouble simulateOne ()
 
int getSize () const override
 
bool getTraining () const
 
void setTraining (bool tr)
 
ShiftOpCsgetShiftOp () const
 
VectorDouble getPolyCoeffs (const EPowerPT &power)
 
void setPolynomialFromPoly (APolynomial *polynomial)
 
bool isCovaDefined () const
 
VectorDouble getCoeffs ()
 
void evalPower (const VectorDouble &inv, VectorDouble &outv, const EPowerPT &power=EPowerPT::fromKey("ONE"))
 
- Public Member Functions inherited from ASimulable
 ASimulable ()
 
virtual ~ASimulable ()
 
int evalSimulate (const VectorDouble &whitenoise, VectorDouble &outv) const
 
VectorDouble evalSimulate (const VectorDouble &whitenoise) const
 
int evalSimulate (const VectorEigen &whitenoise, VectorEigen &outv) const
 
int addSimulateToDest (const VectorDouble &whitenoise, VectorDouble &outv) const
 
int addSimulateToDest (const VectorEigen &whitenoise, VectorEigen &outv) const
 
int evalSimulate (const Eigen::VectorXd &whitenoise, Eigen::VectorXd &outv) const
 
int addSimulateToDest (const Eigen::VectorXd &whitenoise, Eigen::VectorXd &outv) const
 
- Public Member Functions inherited from ALinearOp
virtual ~ALinearOp ()
 
int evalDirect (const VectorDouble &inv, VectorDouble &outv) const
 
VectorDouble evalDirect (const VectorDouble &in) const
 
int evalDirect (const VectorEigen &inv, VectorEigen &outv) const
 
int addToDest (const VectorDouble &inv, VectorDouble &outv) const
 
int addToDest (const VectorEigen &inv, VectorEigen &outv) const
 
int evalDirect (const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const
 
int addToDest (const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const
 

Static Public Member Functions

static PrecisionOpcreateFromShiftOp (ShiftOpCs *shiftop=nullptr, const CovAniso *cova=nullptr, bool verbose=false)
 
static PrecisionOpcreate (const AMesh *mesh, CovAniso *cova, bool verbose=false)
 

Constructor & Destructor Documentation

◆ PrecisionOp() [1/4]

PrecisionOp::PrecisionOp ( )

◆ PrecisionOp() [2/4]

PrecisionOp::PrecisionOp ( ShiftOpCs shiftop,
const CovAniso cova,
bool  verbose = false 
)

◆ PrecisionOp() [3/4]

PrecisionOp::PrecisionOp ( const AMesh mesh,
CovAniso cova,
bool  verbose = false 
)

◆ PrecisionOp() [4/4]

PrecisionOp::PrecisionOp ( const PrecisionOp pmat)

◆ ~PrecisionOp()

PrecisionOp::~PrecisionOp ( )
virtual

Member Function Documentation

◆ create()

PrecisionOp * PrecisionOp::create ( const AMesh mesh,
CovAniso cova,
bool  verbose = false 
)
static

◆ createFromShiftOp()

PrecisionOp * PrecisionOp::createFromShiftOp ( ShiftOpCs shiftop = nullptr,
const CovAniso cova = nullptr,
bool  verbose = false 
)
static

◆ evalCov()

VectorDouble PrecisionOp::evalCov ( int  imesh)

◆ evalDeriv()

virtual void PrecisionOp::evalDeriv ( const Eigen::VectorXd &  ,
Eigen::VectorXd &  ,
int  ,
int  ,
const EPowerPT &   
)
inlinevirtual

Reimplemented in PrecisionOpCs.

◆ evalDerivOptim()

virtual void PrecisionOp::evalDerivOptim ( Eigen::VectorXd &  ,
int  ,
int  ,
const EPowerPT &   
)
inlinevirtual

Reimplemented in PrecisionOpCs.

◆ evalInverse()

void PrecisionOp::evalInverse ( const Eigen::VectorXd &  vecin,
Eigen::VectorXd &  vecout 
)
virtual

Reimplemented in PrecisionOpCs.

◆ evalPower() [1/2]

void PrecisionOp::evalPower ( const Eigen::VectorXd &  inm,
Eigen::VectorXd &  outm,
const EPowerPT &  power = EPowerPT::fromKey("ONE") 
)

Evaluate with power = ONE

Parameters
inmInput array
outmOutput array
powerPower of the operation

◆ evalPower() [2/2]

void PrecisionOp::evalPower ( const VectorDouble inv,
VectorDouble outv,
const EPowerPT &  power = EPowerPT::fromKey("ONE") 
)

◆ getCoeffs()

VectorDouble PrecisionOp::getCoeffs ( )

◆ getLogDeterminant()

double PrecisionOp::getLogDeterminant ( int  nbsimu = 1)
virtual

Compute the Logarithm of the Determinant

Parameters
nbsimuNumber of simulations
Returns
The computed value or TEST if problem

Reimplemented in PrecisionOpCs.

◆ getPolyCoeffs()

VectorDouble PrecisionOp::getPolyCoeffs ( const EPowerPT &  power)

◆ getRangeEigenVal()

std::pair< double, double > PrecisionOp::getRangeEigenVal ( int  ndiscr = 100)
virtual

◆ getShiftOp()

ShiftOpCs* PrecisionOp::getShiftOp ( ) const
inline

◆ getSize()

int PrecisionOp::getSize ( ) const
inlineoverridevirtual

Implements ALinearOp.

◆ getTraining()

bool PrecisionOp::getTraining ( ) const
inline

◆ gradYQX()

virtual void PrecisionOp::gradYQX ( const Eigen::VectorXd &  ,
const Eigen::VectorXd &  ,
Eigen::VectorXd &  ,
const EPowerPT &   
)
inlinevirtual

Reimplemented in PrecisionOpCs.

◆ gradYQXOptim()

virtual void PrecisionOp::gradYQXOptim ( const Eigen::VectorXd &  ,
const Eigen::VectorXd &  ,
Eigen::VectorXd &  ,
const EPowerPT &   
)
inlinevirtual

Reimplemented in PrecisionOpCs.

◆ isCovaDefined()

bool PrecisionOp::isCovaDefined ( ) const
inline

◆ operator=()

PrecisionOp & PrecisionOp::operator= ( const PrecisionOp pmat)

◆ reset()

int PrecisionOp::reset ( const ShiftOpCs shiftop,
const CovAniso cova = nullptr,
bool  verbose = false 
)

◆ setPolynomialFromPoly()

void PrecisionOp::setPolynomialFromPoly ( APolynomial polynomial)

◆ setTraining()

void PrecisionOp::setTraining ( bool  tr)
inline

◆ simulate()

std::vector< Eigen::VectorXd > PrecisionOp::simulate ( int  nbsimu = 1)

◆ simulateOne()

VectorDouble PrecisionOp::simulateOne ( )

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