SimpleTensorGenerator< T, NumDims > Struct Template Reference

Public Member Functions

T operator() (const array< Index, NumDims > &coords) const
 

Member Function Documentation

◆ operator()()

template<typename T , int NumDims>
T SimpleTensorGenerator< T, NumDims >::operator() ( const array< Index, NumDims > &  coords) const
inline
378  {
379  T result = static_cast<T>(0);
380  for (int i = 0; i < NumDims; ++i) {
381  result += static_cast<T>((i + 1) * coords[i]);
382  }
383  return result;
384  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9

References i.


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