|
MGIS 3.1.0
|
an evaluator returning the values of a function as TFEL's tensorial objects More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/TFEL/TensorView.hxx>
Public Types | |
| using | Space = function_space<FunctionType> |
| type of the space on which the underlying function is defined | |
| using | ConstructorArgumentType |
| a simple alias used to workaround what seems to be a bug in gcc 16.x: the underlying function is passed to the constructors by value if it is a lightweight view and by reference otherwise | |
Public Member Functions | |
| constexpr | TensorView (ConstructorArgumentType) |
| constructor, checking the preconditions | |
| template<bool doPreconditionsCheck> | |
| constexpr | TensorView (const PreconditionsCheck< doPreconditionsCheck > &, ConstructorArgumentType) |
| constructor | |
| constexpr bool | check (AbstractErrorHandler &) const |
| perform consistency checks | |
| constexpr const Space & | getSpace () const |
| return the underlying space | |
| constexpr size_type | getNumberOfComponents () const MGIS_NOEXCEPT |
| constexpr auto | operator() (const element_index< Space > &) const |
| call operator | |
| constexpr auto | operator() (const element_workspace< Space > &, const element_index< Space > &) const |
| call operator | |
| constexpr auto | operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) const |
| call operator | |
| constexpr auto | operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) const |
| call operator | |
| constexpr auto | operator() (const element_index< Space > &) |
| call operator returning mutable values | |
| constexpr auto | operator() (const element_workspace< Space > &, const element_index< Space > &) |
| call operator returning mutable values | |
| constexpr auto | operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) |
| call operator returning mutable values | |
| constexpr auto | operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) |
| call operator returning mutable values | |
Static Public Member Functions | |
| static constexpr bool | checkPreconditions (AbstractErrorHandler &, const FunctionType &) |
| method checking that the preconditions of the constructor are met | |
an evaluator returning the values of a function as TFEL's tensorial objects
The view is built from a function whose number of components must be equal to the number of components of TensorType. Its call operators return the values of the function at a given integration point, mapped on the memory of the function using tfel::math::map:
Only the call operators which match the way the underlying function can be called are available.
| FunctionType | type of the underlying function |
| TensorType | type of the tensorial objects returned by the view, which must match the TensorConcept concept |
| using mgis::function::TensorView< FunctionType, TensorType >::ConstructorArgumentType |
a simple alias used to workaround what seems to be a bug in gcc 16.x: the underlying function is passed to the constructors by value if it is a lightweight view and by reference otherwise
|
constexpr |
constructor, checking the preconditions
| [in] | values | function used to build the view |
|
constexpr |
constructor
| doPreconditionsCheck | boolean stating if the preconditions must be checked |
| [in] | pcheck | object stating if preconditions must be checked |
| [in] | values | function used to build the view |
|
nodiscardconstexpr |
perform consistency checks
| [in] | eh | error handler used to report the errors |
|
staticconstexpr |
method checking that the preconditions of the constructor are met
| [in] | eh | error handler used to report the errors |
| [in] | values | function used to build the view |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
return the underlying space
|
nodiscardconstexpr |
call operator returning mutable values
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator returning mutable values
| [in] | wk | cell workspace |
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator
| [in] | wk | cell workspace |
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
constexpr |
call operator returning mutable values
| [in] | i | integration point index |
|
nodiscardconstexpr |
call operator
| [in] | i | integration point index |
|
nodiscardconstexpr |
call operator returning mutable values
| [in] | wk | element workspace |
| [in] | i | integration point index |
|
nodiscardconstexpr |
call operator
| [in] | wk | element workspace |
| [in] | i | integration point index |