MGIS 3.1.0
Loading...
Searching...
No Matches
TensorModifier.ixx File Reference

File which contains the implementation of the TensorModifier class declared in MGIS/Function/TFEL/TensorModifier.hxx. More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

template<TensorConcept TensorType, EvaluatorConcept EvaluatorType>
constexpr bool mgis::function::check (AbstractErrorHandler &, const TensorModifier< TensorType, EvaluatorType > &)
 perform consistency checks
template<TensorConcept TensorType, EvaluatorConcept EvaluatorType>
constexpr mgis::size_type mgis::function::getNumberOfComponents (const TensorModifier< TensorType, EvaluatorType > &) MGIS_NOEXCEPT
 return the number of components

Detailed Description

File which contains the implementation of the TensorModifier class declared in MGIS/Function/TFEL/TensorModifier.hxx.

Author
Thomas Helfer
Date
13/05/2025

Function Documentation

◆ check()

template<TensorConcept TensorType, EvaluatorConcept EvaluatorType>
bool mgis::function::check ( AbstractErrorHandler & eh,
const TensorModifier< TensorType, EvaluatorType > & e )
nodiscardconstexpr

perform consistency checks

Template Parameters
TensorTypetype of the tensorial object to be exposed
EvaluatorTypetype of the underlying evaluator
Parameters
[in]eherror handler used to report the errors
[in]etensor modifier
Returns
true if the values computed by the modifier are valid

◆ getNumberOfComponents()

template<TensorConcept TensorType, EvaluatorConcept EvaluatorType>
mgis::size_type mgis::function::getNumberOfComponents ( const TensorModifier< TensorType, EvaluatorType > & e)
constexpr

return the number of components

Template Parameters
TensorTypetype of the tensorial object to be exposed
EvaluatorTypetype of the underlying evaluator
Parameters
[in]etensor modifier
Returns
the number of components of the modifier, which is the number of components of the tensorial type