1.11.1
CCC
 
Loading...
Searching...
No Matches
gstlrn::ProjMultiMatrix Class Reference

#include <ProjMultiMatrix.hpp>

Inheritance diagram for gstlrn::ProjMultiMatrix:
gstlrn::ProjMulti gstlrn::IProj gstlrn::AStringable

Public Member Functions

 ProjMultiMatrix (const std::vector< std::vector< const ProjMatrix * > > &proj, bool silent=false)
 
 ProjMultiMatrix (ProjsStore &&proj, bool silent=false)
 
 ~ProjMultiMatrix () override=default
 
const MatrixSparsegetProj () const
 
- Public Member Functions inherited from gstlrn::ProjMulti
 ProjMulti (const std::vector< std::vector< const IProj * > > &projs, bool silent=false)
 
String toString (const AStringFormat *strfmt=nullptr) const override
 AStringable Interface.
 
Id getNApex () const override
 
Id getNPoint () const override
 
Id getNVariable () const
 
Id getNLatent () const
 
 ~ProjMulti () override=default
 
bool empty () const
 
- Public Member Functions inherited from gstlrn::IProj
 IProj ()=default
 
 IProj (const IProj &)=default
 
IProjoperator= (const IProj &)=default
 
 IProj (IProj &&) noexcept=default
 
IProjoperator= (IProj &&) noexcept=default
 
virtual ~IProj ()=default
 
 point2mesh (const 1 &inv) const
 
 mesh2point (const 1 &inv) const
 
Id point2mesh (const 1 &inv, 1 &outv) const
 
Id mesh2point (const 1 &inv, 1 &outv) const
 
Id point2mesh (const constvect inv, vect out) const
 
Id mesh2point (const constvect inv, vect out) const
 
Id addMesh2point (const constvect inv, vect outv) const
 
Id addPoint2mesh (const constvect inv, vect outv) const
 
void mesh2point2mesh (const constvect inv, vect outv) const
 
void point2mesh2point (const constvect inv, vect outv) const
 
- Public Member Functions inherited from gstlrn::AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (Id level) const final
 
void printConcreteClassName () const
 

Static Public Member Functions

static std::vector< std::vector< const ProjMatrix * > > create (std::vector< const ProjMatrix * > &vectproj, Id nvariable)
 
static ProjMultiMatrixcreateFromDbAndMeshes (const Db *db, const VectorMeshes &meshes, Id ncov, Id nvar, bool checkOnZVariable=true, bool verbose=false)
 Construct the Projection Matrix starting from 'db' and 'meshes'.
 

Additional Inherited Members

- Public Types inherited from gstlrn::ProjMulti
using ProjVect = std::vector< std::vector< std::optional< std::reference_wrapper< const IProj > > > >
 

Constructor & Destructor Documentation

◆ ProjMultiMatrix() [1/2]

gstlrn::ProjMultiMatrix::ProjMultiMatrix ( const std::vector< std::vector< const ProjMatrix * > > &  proj,
bool  silent = false 
)

◆ ProjMultiMatrix() [2/2]

gstlrn::ProjMultiMatrix::ProjMultiMatrix ( ProjsStore &&  proj,
bool  silent = false 
)

◆ ~ProjMultiMatrix()

gstlrn::ProjMultiMatrix::~ProjMultiMatrix ( )
overridedefault

Member Function Documentation

◆ create()

std::vector< std::vector< const ProjMatrix * > > gstlrn::ProjMultiMatrix::create ( std::vector< const ProjMatrix * > &  vectproj,
Id  nvariable 
)
static

◆ createFromDbAndMeshes()

ProjMultiMatrix * gstlrn::ProjMultiMatrix::createFromDbAndMeshes ( const Db db,
const VectorMeshes meshes,
Id  ncov,
Id  nvar,
bool  checkOnZVariable = true,
bool  verbose = false 
)
static

Construct the Projection Matrix starting from 'db' and 'meshes'.

Parameters
dbTarget Db structure
meshesList of target meshes
ncovNumber of covariances (nugget excluded)
nvarNumber of variables (see notes)
checkOnZVariableCheck if a sample should be considered or not
verboseVerbose flag
Returns
ProjMultiMatrix
Note
Argument 'nvar' is provided as it cannot be derived from 'db' (when 'db' refers to the output file for example, where no Z-variable is available)
When Z-variable is defined, you can still bypass checking the validity of a sample (its Z-value is not NA) if 'checkOnZVariable' is False.

◆ getProj()

const MatrixSparse * gstlrn::ProjMultiMatrix::getProj ( ) const
inline

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