Implementation of the tensor modifiers and of the customization points used to reduce tensorial values computed by evaluators, declared in MGIS/Function/TFEL/Tensors.hxx.
More...
Implementation of the tensor modifiers and of the customization points used to reduce tensorial values computed by evaluators, declared in MGIS/Function/TFEL/Tensors.hxx.
- Author
- Thomas Helfer
- Date
- 13/05/2025
- Copyright
- (C) Copyright Thomas Helfer 2018. Use, modification and distribution are subject to one of the following licences:
- GNU Lesser General Public License (LGPL), Version 3.0. (See accompanying file LGPL-3.0.txt)
- CECILL-C, Version 1.0 (See accompanying files CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt).
template<ViewableFunctionArgumentConcept QualifiedFunctionArgumentType, TensorConcept TensorType>
requires (internals::checkNumberOfComponentsCompatibility< QualifiedFunctionArgumentType, compile_time_size<TensorType>>())
expose the values of a function argument as a tensorial object
expose the values of a function argument as a tensorial object, the definition of the operator| used by expressions such as f |
as_stensor<3>
This is the entry point used by expressions such as f | as_stensor<3>.
- Template Parameters
-
| QualifiedFunctionArgumentType | type of the function argument, which may be a qualified type |
| TensorType | type of the tensorial object to be exposed |
- Parameters
-
| [in] | f | function argument whose values are exposed |
| [in] | m | modifier stating the type of the tensorial object to be exposed |
- Returns
- a TensorView viewing the values of the function argument as objects of type TensorType
- Note
- only available if the number of components of the function argument is compatible with that of TensorType
- Template Parameters
-
| QualifiedFunctionArgumentType | type of the function argument, which may be a qualified type |
| TensorType | type of the tensorial object to be exposed |
- Parameters
-
| [in] | f | function argument whose values are exposed |
| [in] | m | modifier stating the type of the tensorial object to be exposed |
- Returns
- a TensorView viewing the values of the function argument