OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
vector_dist_expression_op< exp1, void, VECT_NORM_INF > Class Template Reference

expression that encapsulate a vector Norm INF expression More...

Detailed Description

template<typename exp1>
class vector_dist_expression_op< exp1, void, VECT_NORM_INF >

expression that encapsulate a vector Norm INF expression

Template Parameters
exp1expression 1
vector_typetype of vector on which the expression is acting

Definition at line 535 of file vector_dist_operators_functions.hpp.

#include <vector_dist_operators_functions.hpp>

Public Types

typedef exp1::is_ker is_ker
 Indicate if it is an in kernel expression.
 
typedef vector_result< typename exp1::vtype, void >::type vtype
 return the vector type on which this expression operate
 
typedef vector_is_sort_result< exp1::is_sort::value, false >::type is_sort
 result for is sort
 
typedef nn_type_result< typename exp1::NN_type, void >::type NN_type
 NN_type.
 

Public Member Functions

 vector_dist_expression_op (const exp1 &o1)
 constructor from an epxression exp1 and a vector vd
 
void init () const
 sum reduction require initialization where we calculate the reduction
 
NN_typegetNN () const
 get the NN object More...
 
std::remove_reference< rtype >::type get ()
 it return the result of the expression
 
template<typename r_type = typename std::remove_reference<rtype>::type>
r_type value (const vect_dist_key_dx &key) const
 it return the result of the expression (precalculated before)
 
template<typename r_type = typename std::remove_reference<rtype>::type>
r_type getReduction () const
 it return the result of the expression for ODEINT
 
vtypegetVector ()
 Return the vector on which is acting. More...
 
const vtypegetVector () const
 Return the vector on which is acting. More...
 

Private Types

typedef apply_kernel_rtype< decltype(o1.value(vect_dist_key_dx()))>::rtype rtype
 return type of this expression
 

Private Attributes

const exp1 o1
 expression on which apply the reduction
 
std::remove_reference< rtype >::type val
 return type of the calculated value (without reference)
 

Member Function Documentation

◆ getNN()

template<typename exp1 >
NN_type* vector_dist_expression_op< exp1, void, VECT_NORM_INF >::getNN ( ) const
inline

get the NN object

Returns
the NN object

Definition at line 622 of file vector_dist_operators_functions.hpp.

◆ getVector() [1/2]

template<typename exp1 >
vtype& vector_dist_expression_op< exp1, void, VECT_NORM_INF >::getVector ( )
inline

Return the vector on which is acting.

It return the vector used in getVExpr, to get this object

Returns
the vector

Definition at line 653 of file vector_dist_operators_functions.hpp.

◆ getVector() [2/2]

template<typename exp1 >
const vtype& vector_dist_expression_op< exp1, void, VECT_NORM_INF >::getVector ( ) const
inline

Return the vector on which is acting.

It return the vector used in getVExpr, to get this object

Returns
the vector

Definition at line 665 of file vector_dist_operators_functions.hpp.


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