OpenFPM  5.2.0
Project that contain the implementation of distributed structures
no_transform< dim, T > Class Template Reference

No transformation. More...

#include <CellDecomposer.hpp>

Public Member Functions

__device__ __host__ no_transform (const Matrix< dim, T > &t, const Point< dim, T > &s)
 Constructor. More...
 
__device__ __host__ T transform (const T(&s)[dim], const size_t i) const
 Shift the point transformation. More...
 
__device__ __host__ T transform (const Point< dim, T > &s, const size_t i) const
 No transformation. More...
 
template<typename Mem >
__device__ __host__ T transform (const encapc< 1, Point< dim, T >, Mem > &s, const size_t i) const
 No transformation. More...
 
void setTransform (const Matrix< dim, T > &mat, const Point< dim, T > &orig)
 Set the transformation Matrix and shift. More...
 
bool operator== (const no_transform< dim, T > &nt)
 It return always true true. More...
 
bool operator!= (const no_transform< dim, T > &nt)
 It return always false. More...
 
const Point< dim, T > & getOrig () const
 Get the origin. More...
 
const Matrix< dim, T > & getMat () const
 Get the transformation Matrix. More...
 

Private Attributes

Point< dim, T > orig
 shift transform
 
Matrix< dim, T > mat
 Matrix transform.
 

Detailed Description

template<unsigned int dim, typename T>
class no_transform< dim, T >

No transformation.

Definition at line 278 of file CellDecomposer.hpp.

Constructor & Destructor Documentation

◆ no_transform()

template<unsigned int dim, typename T >
__device__ __host__ no_transform< dim, T >::no_transform ( const Matrix< dim, T > &  t,
const Point< dim, T > &  s 
)
inline

Constructor.

Parameters
tMatrix transformation
sshift

Definition at line 294 of file CellDecomposer.hpp.

Member Function Documentation

◆ getMat()

template<unsigned int dim, typename T >
const Matrix<dim,T>& no_transform< dim, T >::getMat ( ) const
inline

Get the transformation Matrix.

Returns
get the return the matrix

Definition at line 393 of file CellDecomposer.hpp.

◆ getOrig()

template<unsigned int dim, typename T >
const Point<dim,T>& no_transform< dim, T >::getOrig ( ) const
inline

Get the origin.

Returns
the shift vector

Definition at line 383 of file CellDecomposer.hpp.

◆ operator!=()

template<unsigned int dim, typename T >
bool no_transform< dim, T >::operator!= ( const no_transform< dim, T > &  nt)
inline

It return always false.

There is nothing to compare they cannot be differents

Parameters
ntunused
Returns
false

Definition at line 373 of file CellDecomposer.hpp.

◆ operator==()

template<unsigned int dim, typename T >
bool no_transform< dim, T >::operator== ( const no_transform< dim, T > &  nt)
inline

It return always true true.

There is nothing to compare

Parameters
ntunused
Returns
true

Definition at line 359 of file CellDecomposer.hpp.

◆ setTransform()

template<unsigned int dim, typename T >
void no_transform< dim, T >::setTransform ( const Matrix< dim, T > &  mat,
const Point< dim, T > &  orig 
)
inline

Set the transformation Matrix and shift.

Parameters
matMatrix transformation
origorigin point

Definition at line 345 of file CellDecomposer.hpp.

◆ transform() [1/3]

template<unsigned int dim, typename T >
template<typename Mem >
__device__ __host__ T no_transform< dim, T >::transform ( const encapc< 1, Point< dim, T >, Mem > &  s,
const size_t  i 
) const
inline

No transformation.

Parameters
ssource point
icoordinate
Returns
the point coordinate

Definition at line 334 of file CellDecomposer.hpp.

◆ transform() [2/3]

template<unsigned int dim, typename T >
__device__ __host__ T no_transform< dim, T >::transform ( const Point< dim, T > &  s,
const size_t  i 
) const
inline

No transformation.

Parameters
ssource point
icoordinate
Returns
the source point coordinate

Definition at line 321 of file CellDecomposer.hpp.

◆ transform() [3/3]

template<unsigned int dim, typename T >
__device__ __host__ T no_transform< dim, T >::transform ( const T(&)  s[dim],
const size_t  i 
) const
inline

Shift the point transformation.

Parameters
ssource point
icoordinate
Returns
the transformed coordinate

Definition at line 308 of file CellDecomposer.hpp.


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