OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
point_expression_op< orig, exp1, exp2, POINT_NORM > Class Template Reference

Point norm operation. More...

Detailed Description

template<typename orig, typename exp1, typename exp2>
class point_expression_op< orig, exp1, exp2, POINT_NORM >

Point norm operation.

Template Parameters
origoriginal type
exp1expression1
exp2expression2
opoperation

Definition at line 90 of file Point_operators_functions.hpp.

#include <Point_operators_functions.hpp>

Public Types

typedef orig orig_type
 Origin type.
 
typedef int is_expression
 indicate that this class encapsulate an expression
 
typedef int has_init
 indicate that init must be called before value
 
typedef orig::coord_type return_type
 return type of the expression
 

Public Member Functions

 point_expression_op (const exp1 &o1)
 Constructor from expression.
 
void init () const
 This function must be called before value. More...
 
template<typename r_type = typename std::remove_reference<decltype(o1.value(0))>::type>
r_type value (size_t k) const
 Evaluate the expression. More...
 
template<typename T >
 operator T () const
 

Static Public Attributes

static const unsigned int nvals = 1
 this operation produce a scalar as result
 

Private Attributes

const exp1 o1
 
std::remove_const< typename
orig::coord_type >::type 
scal
 Scalar value.
 

Member Function Documentation

template<typename orig , typename exp1 , typename exp2 >
void point_expression_op< orig, exp1, exp2, POINT_NORM >::init ( ) const
inline

This function must be called before value.

it calculate the scalar product before return the values

Definition at line 124 of file Point_operators_functions.hpp.

template<typename orig , typename exp1 , typename exp2 >
template<typename r_type = typename std::remove_reference<decltype(o1.value(0))>::type>
r_type point_expression_op< orig, exp1, exp2, POINT_NORM >::value ( size_t  k) const
inline

Evaluate the expression.

Parameters
keywhere to evaluate the expression

Definition at line 141 of file Point_operators_functions.hpp.


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