tfel
Loading...
Searching...
No Matches
mfront::gpmp::PointEvaluator< Evaluation, N > Struct Template Reference

function object evaluating a material property at the points of a batch: the arguments are read, the evaluation at one point is called, and the output and the status of the point are written. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericParallelMaterialProperty/Evaluate.hxx>

Public Member Functions

TFEL_HOST_DEVICE BatchStatistics operator() (const size_type i) const
 evaluate the material property at the i-th point

Public Attributes

Evaluation evaluation
 evaluation at one point
Field output
 output
std::array< ConstField, N > arguments
 arguments
int * statuses
 statuses of the points, or null
mfront_gmp_OutOfBoundsPolicy out_of_bounds_policy
 out of bounds policy

Detailed Description

template<typename Evaluation, size_type N>
struct mfront::gpmp::PointEvaluator< Evaluation, N >

function object evaluating a material property at the points of a batch: the arguments are read, the evaluation at one point is called, and the output and the status of the point are written.

Template Parameters
Evaluationevaluation at one point, generated by MFront, taking the values of the arguments and the out of bounds policy, and returning a PointResult
Nnumber of arguments

Member Function Documentation

◆ operator()()

template<typename Evaluation, size_type N>
TFEL_HOST_DEVICE BatchStatistics mfront::gpmp::PointEvaluator< Evaluation, N >::operator() ( const size_type i) const
inline

evaluate the material property at the i-th point

Note
the inline keyword is not redundant. It is an inlining hint: clang only gives one to the functions explicitly declared inline, and may otherwise leave a function call per point in the loop over the points.

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