Specialization for views. More...
Specialization for views.
T | type of the array |
dim | dimensionality of the array |
Definition at line 2026 of file Point_operators.hpp.
#include <Point_operators.hpp>
Public Types | |
typedef int | has_init |
indicate that init must be called before value | |
typedef int | is_expression |
indicate that this class encapsulate an expression | |
typedef T | coord_type |
The type of the internal vector. | |
Public Member Functions | |
template<typename orig , typename exp1 , typename exp2 , unsigned int op> | |
__device__ __host__ point_expression< openfpm::detail::multi_array::sub_array_openfpm< T, 1, vmpl > > & | operator= (const point_expression_op< orig, exp1, exp2, op > &p_exp) |
Operator= for point expression. | |
__device__ __host__ | point_expression (const openfpm::detail::multi_array::sub_array_openfpm< T, 1, vmpl > &d) |
construct from an array of dimension dim | |
__device__ __host__ void | init () const |
This function must be called before value. | |
__device__ __host__ T & | operator[] (int k) |
Same as value() | |
__device__ __host__ T & | operator[] (int k) const |
Same as value() | |
__device__ __host__ T & | value (const int k) |
Evaluate the expression at coordinate k. | |
__device__ __host__ T & | value (const int k) const |
Evaluate the expression at coordinate k. | |
Static Public Attributes | |
static const unsigned int | nvals = subar_dim<vmpl>::type::value |
this operation produce a vector as result of size dims | |
Private Attributes | |
openfpm::detail::multi_array::sub_array_openfpm< T, 1, vmpl > | d |
array view of dimension dim | |
typedef T point_expression< openfpm::detail::multi_array::sub_array_openfpm< T, 1, vmpl > >::coord_type |
The type of the internal vector.
Definition at line 2043 of file Point_operators.hpp.
typedef int point_expression< openfpm::detail::multi_array::sub_array_openfpm< T, 1, vmpl > >::has_init |
indicate that init must be called before value
Definition at line 2034 of file Point_operators.hpp.
typedef int point_expression< openfpm::detail::multi_array::sub_array_openfpm< T, 1, vmpl > >::is_expression |
indicate that this class encapsulate an expression
Definition at line 2037 of file Point_operators.hpp.
|
inline |
construct from an array of dimension dim
d | array |
Definition at line 2074 of file Point_operators.hpp.
|
inline |
This function must be called before value.
it calculate the scalar product before return the values
Definition at line 2084 of file Point_operators.hpp.
|
inline |
Operator= for point expression.
orig | origin type |
exp1 | expression 1 |
exp2 | expression 2 |
op | operation |
point | expression |
Definition at line 2059 of file Point_operators.hpp.
|
inline |
|
inline |
|
inline |
Evaluate the expression at coordinate k.
It just return the value set in the constructor
k | coordinate |
Definition at line 2117 of file Point_operators.hpp.
|
inline |
Evaluate the expression at coordinate k.
It just return the value set in the constructor
k | coordinate |
Definition at line 2131 of file Point_operators.hpp.
|
mutableprivate |
array view of dimension dim
Definition at line 2029 of file Point_operators.hpp.
|
static |
this operation produce a vector as result of size dims
Definition at line 2040 of file Point_operators.hpp.