1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::ShiftOpStencil Class Reference

This is an implementation of ShiftOp dedicated to case where: More...

#include <ShiftOpStencil.hpp>

Inheritance diagram for gstlrn::ShiftOpStencil:
gstlrn::AShiftOp gstlrn::ICloneable gstlrn::ALinearOpEigenCG< AShiftOp > gstlrn::ALinearOp

Detailed Description

This is an implementation of ShiftOp dedicated to case where:

  • the target is a regular grid
  • the meshing is elaborated as a TurboMeshing
  • the covariance is stationary

The different members are: _relativeShifts For each vector, gives the vector of shifts, with respect to the target node (in relative indices) _absoluteShifts Vector of shifts to calculate where the weights should apply calculated on the global target grid. This can only be used if the grid has no selection _weights Vector of weights (only significative ones are kept) _isInside Vector telling if each node of the grid is located on its edge and should be bypassed for matrix calculations, or not

Public Member Functions

 ShiftOpStencil (const MeshETurbo *mesh=nullptr, const CovAniso *cova=nullptr, bool verbose=false)
 
 ShiftOpStencil (const ShiftOpStencil &shift)
 
ShiftOpStenciloperator= (const ShiftOpStencil &shift)
 
virtual ~ShiftOpStencil ()
 
void normalizeLambdaBySills (const AMesh *mesh) override
 ICloneable interface.
 
void multiplyByValueAndAddDiagonal (double v1=1., double v2=0.) const override
 
void resetModif () const override
 
double getLambda (Id iapex) const override
 
double logDetLambda () const override
 
Id _addToDest (const constvect inv, vect outv) const override
 
- Public Member Functions inherited from gstlrn::AShiftOp
 AShiftOp (CovAniso *cova=nullptr, Id napices=0)
 
 AShiftOp (const AShiftOp &shift)
 
AShiftOpoperator= (const AShiftOp &shift)
 
virtual void prodLambda (const 1 &x, 1 &y, const EPowerPT &power) const
 
virtual ~AShiftOp ()
 
virtual double getMaxEigenValue () const
 
const & getLambdas () const
 
Id getSize () const override
 
virtual void addProdLambda (const constvect x, vect y, const EPowerPT &power) const
 
void prodLambda (const constvect x, vect y, const EPowerPT &power) const
 
void prodLambda (const 1 &x, vect y, const EPowerPT &power) const
 
void prodLambda (const constvect x, 1 &y, const EPowerPT &power) const
 
- Public Member Functions inherited from gstlrn::ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 
std::shared_ptr< ICloneablecloneShared () const
 
std::unique_ptr< ICloneablecloneUnique () const
 
- Public Member Functions inherited from gstlrn::ALinearOpEigenCG< AShiftOp >
virtual ~ALinearOpEigenCG ()
 
Eigen::Index rows () const
 
Eigen::Index cols () const
 
Eigen::Product< AShiftOp, Rhs, Eigen::AliasFreeProduct > operator* (const Eigen::MatrixBase< Rhs > &x) const
 
- Public Member Functions inherited from gstlrn::ALinearOp
 ALinearOp ()
 
 ALinearOp (const ALinearOp &m)=delete
 
ALinearOpoperator= (const ALinearOp &m)=delete
 
virtual ~ALinearOp ()
 
Id evalDirect (const 1 &inv, 1 &outv) const
 
 evalDirect (const 1 &in) const
 
void setUseFactor (bool usefactor)
 
Id evalDirect (constvect inv, vect outv) const
 
Id addToDest (const constvect inv, vect outv) const
 
Id addToDest (const ::Eigen::VectorXd &inv, ::Eigen::VectorXd &outv) const
 

Additional Inherited Members

- Public Types inherited from gstlrn::ALinearOpEigenCG< AShiftOp >
enum  
 
typedef double Scalar
 
typedef double RealScalar
 
typedef Id StorageIndex
 
- Static Public Member Functions inherited from gstlrn::AShiftOp
static std::shared_ptr< CovAnisocloneAndCast (const CovAniso *cova)
 
static std::shared_ptr< CovAnisocloneAndCast (const std::shared_ptr< CovAniso > &cova)
 

Constructor & Destructor Documentation

◆ ShiftOpStencil() [1/2]

gstlrn::ShiftOpStencil::ShiftOpStencil ( const MeshETurbo mesh = nullptr,
const CovAniso cova = nullptr,
bool  verbose = false 
)

◆ ShiftOpStencil() [2/2]

gstlrn::ShiftOpStencil::ShiftOpStencil ( const ShiftOpStencil shift)

◆ ~ShiftOpStencil()

gstlrn::ShiftOpStencil::~ShiftOpStencil ( )
virtual

Member Function Documentation

◆ _addToDest()

Id gstlrn::ShiftOpStencil::_addToDest ( const constvect  inv,
vect  outv 
) const
overridevirtual

Implements gstlrn::AShiftOp.

◆ getLambda()

double gstlrn::ShiftOpStencil::getLambda ( Id  iapex) const
overridevirtual

Reimplemented from gstlrn::AShiftOp.

◆ logDetLambda()

double gstlrn::ShiftOpStencil::logDetLambda ( ) const
overridevirtual

Reimplemented from gstlrn::AShiftOp.

◆ multiplyByValueAndAddDiagonal()

void gstlrn::ShiftOpStencil::multiplyByValueAndAddDiagonal ( double  v1 = 1.,
double  v2 = 0. 
) const
overridevirtual

Reimplemented from gstlrn::ALinearOp.

◆ normalizeLambdaBySills()

void gstlrn::ShiftOpStencil::normalizeLambdaBySills ( const AMesh mesh)
overridevirtual

ICloneable interface.

Implements gstlrn::AShiftOp.

◆ operator=()

ShiftOpStencil & gstlrn::ShiftOpStencil::operator= ( const ShiftOpStencil shift)

◆ resetModif()

void gstlrn::ShiftOpStencil::resetModif ( ) const
overridevirtual

Reimplemented from gstlrn::ALinearOp.


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