gstlearn  1.0.0
CCC
ProjMatrix Class Reference

#include <ProjMatrix.hpp>

Inheritance diagram for ProjMatrix:
IProjMatrix AStringable

Public Member Functions

 ProjMatrix ()
 
 ProjMatrix (const Db *db, const AMesh *a_mesh, int rankZ=-1, bool verbose=false)
 
 ProjMatrix (int npoint, int napices, const cs *aproj)
 
 ProjMatrix (const ProjMatrix &m)
 
ProjMatrixoperator= (const ProjMatrix &m)
 
virtual ~ProjMatrix ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
int point2mesh (const VectorDouble &inv, VectorDouble &outv) const override
 Interface for IProjMatrix. More...
 
int mesh2point (const VectorDouble &inv, VectorDouble &outv) const override
 
int getApexNumber () const override
 
int getPointNumber () const override
 
int resetFromDb (const Db *db, const AMesh *a_mesh, int rankZ=-1, bool verbose=false)
 
int resetFromPoints (int npoint, int napices, const cs *aproj)
 
int resetFromDbByNeigh (const Db *db, AMesh *amesh, double radius, int flag_exact=0, bool verbose=false)
 
const cs * getAproj () const
 
Triplet getAprojToTriplet (bool flag_from_1=false) const
 
- Public Member Functions inherited from IProjMatrix
 IProjMatrix ()
 
virtual ~IProjMatrix ()
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Static Public Member Functions

static ProjMatrixcreate (const Db *db, const AMesh *a_mesh, int rankZ=-1, bool verbose=false)
 

Private Attributes

int _nPoint
 
int _nApices
 
cs * _Aproj
 

Constructor & Destructor Documentation

◆ ProjMatrix() [1/4]

ProjMatrix::ProjMatrix ( )

◆ ProjMatrix() [2/4]

ProjMatrix::ProjMatrix ( const Db db,
const AMesh a_mesh,
int  rankZ = -1,
bool  verbose = false 
)

◆ ProjMatrix() [3/4]

ProjMatrix::ProjMatrix ( int  npoint,
int  napices,
const cs *  aproj 
)

◆ ProjMatrix() [4/4]

ProjMatrix::ProjMatrix ( const ProjMatrix m)

◆ ~ProjMatrix()

ProjMatrix::~ProjMatrix ( )
virtual

Member Function Documentation

◆ create()

ProjMatrix * ProjMatrix::create ( const Db db,
const AMesh a_mesh,
int  rankZ = -1,
bool  verbose = false 
)
static

◆ getApexNumber()

int ProjMatrix::getApexNumber ( ) const
inlineoverridevirtual

Implements IProjMatrix.

◆ getAproj()

const cs* ProjMatrix::getAproj ( ) const
inline

◆ getAprojToTriplet()

Triplet ProjMatrix::getAprojToTriplet ( bool  flag_from_1 = false) const

◆ getPointNumber()

int ProjMatrix::getPointNumber ( ) const
inlineoverridevirtual

Implements IProjMatrix.

◆ mesh2point()

int ProjMatrix::mesh2point ( const VectorDouble inv,
VectorDouble outv 
) const
overridevirtual

Implements IProjMatrix.

◆ operator=()

ProjMatrix & ProjMatrix::operator= ( const ProjMatrix m)

◆ point2mesh()

int ProjMatrix::point2mesh ( const VectorDouble inv,
VectorDouble outv 
) const
overridevirtual

Interface for IProjMatrix.

Implements IProjMatrix.

◆ resetFromDb()

int ProjMatrix::resetFromDb ( const Db db,
const AMesh a_mesh,
int  rankZ = -1,
bool  verbose = false 
)

◆ resetFromDbByNeigh()

int ProjMatrix::resetFromDbByNeigh ( const Db db,
AMesh amesh,
double  radius,
int  flag_exact = 0,
bool  verbose = false 
)

Returns the projection matrix of a set of points (contained in a Db) onto a meshing

Parameters
dbDb structure
ameshMeshing structure
radiusNeighborhood radius
flag_exactType of test
verboseVerbose flag
Remarks
When flag_exact is TRUE, for each active sample of Db, a vertex
of the mesh is active as soon as it lies within the vicinity
of the sample.
If flag_exact is FALSE, all vertices of a mesh are considered as
active as soon as the mesh intersects the ball around a sample.
The vicinity is defined as any point located at a distance
from the sample smaller than 'radius'. The distance is calculated
as the Euclidean distance over the space whose dimension is
if the smallest value between the Db et Mesh space dimensions.
Returns

◆ resetFromPoints()

int ProjMatrix::resetFromPoints ( int  npoint,
int  napices,
const cs *  aproj 
)

◆ toString()

String ProjMatrix::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface for AStringable.

Reimplemented from AStringable.

Member Data Documentation

◆ _Aproj

cs* ProjMatrix::_Aproj
private

◆ _nApices

int ProjMatrix::_nApices
private

◆ _nPoint

int ProjMatrix::_nPoint
private

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