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

#include <SpaceSN.hpp>

Inheritance diagram for gstlrn::SpaceSN:
gstlrn::ASpace gstlrn::AStringable gstlrn::ICloneable

Public Member Functions

virtual ~SpaceSN ()
 
ESpaceType getType () const override
 ICloneable interface.
 
double getRadius () const
 Return the sphere radius.
 
virtual String toString (const AStringFormat *strfmt, Id idx=-1) const override
 Dump a space in a string.
 
bool isEqual (const ASpace *space) const override
 Return true if the given space is equal to me.
 
- Public Member Functions inherited from gstlrn::ASpace
virtual ~ASpace ()
 
String toString (const AStringFormat *strfmt=nullptr) const final
 Interface for AStringable.
 
virtual void setOrigin (const 1 &origin)
 Update the origin of the space.
 
virtual size_t getNDim (Id ispace=-1) const
 Get the number of dimensions.
 
virtual size_t getOffset (Id ispace=-1) const
 Get the offset index for coordinates.
 
virtual const & getOrigin (Id ispace=-1) const
 Return the space origin coordinates.
 
virtual size_t getNComponents () const
 Get the number of space components.
 
virtual std::shared_ptr< const ASpacegetComponent (Id ispace=-1) const
 Return the space component at index ispace.
 
virtual getDistances (const SpacePoint &p1, const SpacePoint &p2) const
 Return all the distances (one by space component) between two space points.
 
virtual void getDistancePointVectInPlace (const SpacePoint &p1, const std::vector< SpacePoint > &p2, 1 &res, const 1 &ranks) const
 
void move (SpacePoint &p1, const 1 &vec) const
 Not to be overriden.
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, Id ispace=-1) const
 Return the distance between two space points.
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, const Tensor &tensor, Id ispace=-1) const
 Return the distance between two space points with the given tensor.
 
double getFrequentialDistance (const SpacePoint &p1, const SpacePoint &p2, const Tensor &tensor, Id ispace=-1) const
 Return the distance in frequential domain between two space points with the given tensor.
 
 getIncrement (const SpacePoint &p1, const SpacePoint &p2, Id ispace=-1) const
 Return the increment vector between two space points.
 
void getIncrementInPlace (const SpacePoint &p1, const SpacePoint &p2, 1 &ptemp, Id ispace=-1) const
 
 getUnitaryVector () const
 
virtual projCoord (const 1 &coord, Id ispace=-1) const
 Project the coordinates in the given space.
 
void setOffset (size_t offset)
 Customize the dimension offset index of the current space TODO : to be made private.
 
- 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
 
- Public Member Functions inherited from gstlrn::ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 
std::shared_ptr< ICloneablecloneShared () const
 
std::unique_ptr< ICloneablecloneUnique () const
 

Static Public Member Functions

static ASpaceSharedPtr create (Id ndim, double radius)
 
- Static Public Member Functions inherited from gstlrn::ASpace
static std::shared_ptr< const ASpacegetDefaultSpaceIfNull (const std::shared_ptr< const ASpace > &space)
 

Constructor & Destructor Documentation

◆ ~SpaceSN()

gstlrn::SpaceSN::~SpaceSN ( )
virtual

Member Function Documentation

◆ create()

ASpaceSharedPtr gstlrn::SpaceSN::create ( Id  ndim,
double  radius 
)
static

◆ getRadius()

double gstlrn::SpaceSN::getRadius ( ) const
inline

Return the sphere radius.

◆ getType()

ESpaceType gstlrn::SpaceSN::getType ( ) const
inlineoverridevirtual

ICloneable interface.

Return the concrete space type

Implements gstlrn::ASpace.

◆ isEqual()

bool gstlrn::SpaceSN::isEqual ( const ASpace space) const
overridevirtual

Return true if the given space is equal to me.

Reimplemented from gstlrn::ASpace.

◆ toString()

String gstlrn::SpaceSN::toString ( const AStringFormat strfmt,
Id  idx = -1 
) const
overridevirtual

Dump a space in a string.

Reimplemented from gstlrn::ASpace.


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