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

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...

Classes

struct  mgis::function::customization_points::AbsoluteValue< TensorType >
 partial specialization computing the absolute value of a tensorial object component by component More...
struct  mgis::function::customization_points::AbsoluteValue< tfel::math::View< const TensorType > >
 partial specialization computing the absolute value of a view on a tensorial object component by component More...
struct  mgis::function::customization_points::MaximumComponent< TensorType >
 partial specialization returning the largest component of a tensorial object More...
struct  mgis::function::customization_points::MaximumComponent< tfel::math::View< const TensorType > >
 partial specialization returning the largest component of a view on a tensorial object More...
struct  mgis::function::customization_points::MinimumComponent< TensorType >
 partial specialization returning the smallest component of a tensorial object More...
struct  mgis::function::customization_points::MinimumComponent< tfel::math::View< const TensorType > >
 partial specialization returning the smallest component of a view on a tensorial object More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

template<ViewableFunctionArgumentConcept QualifiedFunctionArgumentType, TensorConcept TensorType>
requires (internals::checkNumberOfComponentsCompatibility< QualifiedFunctionArgumentType, compile_time_size<TensorType>>())
constexpr auto mgis::function::operator| (QualifiedFunctionArgumentType &&, const internals::tensor_modifier< TensorType > &)
 expose the values of a function argument as a tensorial object

Detailed Description

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

Function Documentation

◆ operator|()

template<ViewableFunctionArgumentConcept QualifiedFunctionArgumentType, TensorConcept TensorType>
requires (internals::checkNumberOfComponentsCompatibility< QualifiedFunctionArgumentType, compile_time_size<TensorType>>())
auto mgis::function::operator| ( QualifiedFunctionArgumentType && f,
const internals::tensor_modifier< TensorType > & m )
constexpr

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
QualifiedFunctionArgumentTypetype of the function argument, which may be a qualified type
TensorTypetype of the tensorial object to be exposed
Parameters
[in]ffunction argument whose values are exposed
[in]mmodifier 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
QualifiedFunctionArgumentTypetype of the function argument, which may be a qualified type
TensorTypetype of the tensorial object to be exposed
Parameters
[in]ffunction argument whose values are exposed
[in]mmodifier stating the type of the tensorial object to be exposed
Returns
a TensorView viewing the values of the function argument