MGIS 3.1.0
Loading...
Searching...
No Matches
mgis::function::internals::RotateBackwardsModifier Struct Reference

modifier changing the basis of the tensorial values computed by an evaluator in the backwards direction, i.e. using the transpose of the given rotation matrix More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/TFEL/Tensors.hxx>

Public Types

using CallableType
 type of the callable object performing the rotation

Public Member Functions

constexpr auto operator() (const tfel::math::tmatrix< 3, 3, real > &R) const
 create a modifier rotating the values computed by an evaluator using the transpose of a rotation matrix
template<typename SecondEvaluatorType>
requires (EvaluatorConcept<std::decay_t<SecondEvaluatorType>>)
constexpr auto operator() (SecondEvaluatorType &&e2) const
 partially apply the rotation to the evaluator of the second argument, i.e. the evaluator providing the rotation matrix
template<typename FirstEvaluatorType, typename SecondEvaluatorType>
requires ((EvaluatorConcept<std::decay_t<FirstEvaluatorType>>)&& // (EvaluatorConcept<std::decay_t<SecondEvaluatorType>>)&& // (std::invocable< CallableType, evaluator_result<std::decay_t<FirstEvaluatorType>>, evaluator_result<std::decay_t<SecondEvaluatorType>>>))
constexpr auto operator() (FirstEvaluatorType &&e1, SecondEvaluatorType &&e2) const
 build the evaluator of the rotated tensorial values

Detailed Description

modifier changing the basis of the tensorial values computed by an evaluator in the backwards direction, i.e. using the transpose of the given rotation matrix

This is the counterpart of RotateModifier: where the latter gives the components of the values in the basis whose vectors are the columns of the rotation matrix, the former gives their components in the initial basis knowing their components in that basis.

Member Typedef Documentation

◆ CallableType

Initial value:
decltype(
[]<typename TensorType>(const TensorType& t,
const tfel::math::tmatrix<3, 3, real>& R)
requires((tfel::math::TensorConcept<TensorType>) ||
(tfel::math::StensorConcept<TensorType>) ||
(tfel::math::ST2toST2Concept<TensorType>)) {
return tfel::math::change_basis(t, tfel::math::transpose(R));
})
TensorType
type of tensor that are supported
Definition TensorOperations.hxx:50

type of the callable object performing the rotation

Member Function Documentation

◆ operator()() [1/3]

auto mgis::function::internals::RotateBackwardsModifier::operator() ( const tfel::math::tmatrix< 3, 3, real > & R) const
inlineconstexpr

create a modifier rotating the values computed by an evaluator using the transpose of a rotation matrix

Parameters
[in]Rrotation matrix, whose columns are the basis vectors expressed in the initial basis; its transpose is used
Returns
a unary operation modifier computing tfel::math::change_basis(t, tfel::math::transpose(R))

◆ operator()() [2/3]

template<typename FirstEvaluatorType, typename SecondEvaluatorType>
requires ((EvaluatorConcept<std::decay_t<FirstEvaluatorType>>)&& // (EvaluatorConcept<std::decay_t<SecondEvaluatorType>>)&& // (std::invocable< CallableType, evaluator_result<std::decay_t<FirstEvaluatorType>>, evaluator_result<std::decay_t<SecondEvaluatorType>>>))
auto mgis::function::internals::RotateBackwardsModifier::operator() ( FirstEvaluatorType && e1,
SecondEvaluatorType && e2 ) const
inlineconstexpr

build the evaluator of the rotated tensorial values

Template Parameters
FirstEvaluatorTypetype of the evaluator providing the tensorial values to rotate, which may be a qualified type
SecondEvaluatorTypetype of the evaluator providing the rotation matrix, which may be a qualified type
Parameters
[in]e1evaluator used to compute the tensorial values to rotate
[in]e2evaluator used to compute the rotation matrix
Returns
a BinaryOperationModifier2 object returning the rotated values

◆ operator()() [3/3]

template<typename SecondEvaluatorType>
requires (EvaluatorConcept<std::decay_t<SecondEvaluatorType>>)
auto mgis::function::internals::RotateBackwardsModifier::operator() ( SecondEvaluatorType && e2) const
inlineconstexpr

partially apply the rotation to the evaluator of the second argument, i.e. the evaluator providing the rotation matrix

Template Parameters
SecondEvaluatorTypetype of the evaluator providing the rotation matrix, which may be a qualified type
Parameters
[in]e2evaluator used to compute the rotation matrix
Returns
a BinaryOperatorCurrying2 object, which can be applied to the evaluator of the first argument using operator|

The documentation for this struct was generated from the following file: