provides a memoization of the a std::function<TResult(TNaturalCoords)>, mainly used for element shape functions and their derivatives
More...
template<typename TResult, typename TNaturalCoords, typename TIdHash = NaturalCoordianteToId<32>>
class NaturalCoordinateMemoizer< TResult, TNaturalCoords, TIdHash >
provides a memoization of the a std::function<TResult(TNaturalCoords)>, mainly used for element shape functions and their derivatives
- Template Parameters
-
TResult | ... return type of the function |
TNaturalCoords | ... vector type of natural coordinates |
TIdHash | ... function object that transforms TNaturalCoords into a vector id |
template<typename TResult , typename TNaturalCoords , typename TIdHash = NaturalCoordianteToId<32>>
ctor
- Parameters
-
function | ... function for memoization |
template<typename TResult , typename TNaturalCoords , typename TIdHash = NaturalCoordianteToId<32>>
template<typename TResult , typename TNaturalCoords , typename TIdHash = NaturalCoordianteToId<32>>
returns the value of the function for the given arguments.
Repeated calls of Get() with the same arguments will return the memoized Eigen::MatrixXd.
- Parameters
-
- Returns
- reference to the 'memoized' Eigen::MatrixXd
The documentation for this class was generated from the following file: