OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
no_transform_only< dim, T > Class Template Reference

No transformation. More...

Detailed Description

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

No transformation.

Definition at line 400 of file CellDecomposer.hpp.

#include <CellDecomposer.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ no_transform_only()

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

Constructor.

Parameters
tMatrix transformation
sshift

Definition at line 411 of file CellDecomposer.hpp.

Member Function Documentation

◆ operator!=()

template<unsigned int dim, typename T >
bool no_transform_only< 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 501 of file CellDecomposer.hpp.

◆ operator==()

template<unsigned int dim, typename T >
bool no_transform_only< 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 487 of file CellDecomposer.hpp.

◆ setTransform()

template<unsigned int dim, typename T >
void no_transform_only< 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 473 of file CellDecomposer.hpp.

◆ transform() [1/4]

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

No transformation.

Parameters
ssource point
icoordinate
Returns
the point coordinate

Definition at line 462 of file CellDecomposer.hpp.

◆ transform() [2/4]

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

No transformation.

Parameters
ssource point
icoordinate
Returns
the source point coordinate

Definition at line 449 of file CellDecomposer.hpp.

◆ transform() [3/4]

template<unsigned int dim, typename T >
__device__ __host__ T no_transform_only< dim, T >::transform ( const T *  s,
const int  i 
) const
inline

Shift the point transformation.

Parameters
ssource point
icoordinate
Returns
the transformed coordinate

Definition at line 423 of file CellDecomposer.hpp.

◆ transform() [4/4]

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

Shift the point transformation.

Parameters
ssource point
icoordinate
Returns
the transformed coordinate

Definition at line 436 of file CellDecomposer.hpp.


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