tfel
Loading...
Searching...
No Matches
RotateTangentOperatorBlock.hxx File Reference

This file declares the rotateTangentOperatorBlock function. More...

Namespaces

namespace  mfront
 This namespace contains material used to build the MFront code generator.

Functions

template<typename Type1, typename Type2, typename real>
TFEL_HOST_DEVICE constexpr void mfront::gb::rotateTangentOperatorBlock (real *const dest, const real *const src, const tfel::math::rotation_matrix< real > &r) noexcept
 rotate a tangent operator block, i.e. the derivative of an object of type Type1 with respect to an object of type Type2, stored by rows. Each object is a vector, a symmetric tensor or a tensor.

Detailed Description

This file declares the rotateTangentOperatorBlock function.

Date
20/10/2026

Function Documentation

◆ rotateTangentOperatorBlock()

template<typename Type1, typename Type2, typename real>
TFEL_HOST_DEVICE constexpr void mfront::gb::rotateTangentOperatorBlock ( real *const dest,
const real *const src,
const tfel::math::rotation_matrix< real > & r )
constexprnoexcept

rotate a tangent operator block, i.e. the derivative of an object of type Type1 with respect to an object of type Type2, stored by rows. Each object is a vector, a symmetric tensor or a tensor.

The rotated block is \(Q_{1}\,K\,Q_{2}^{T}\), where \(Q_{i}\) is the matrix of the rotation of the objects of type Type_i by tfel::math::change_basis, which is orthogonal in the storage of TFEL: the rows of the block are rotated as objects of type Type2, then its columns are rotated as objects of type Type1.

This function is meant to rotate the blocks for which TFEL has no type with a change_basis function (derivative of a vector with respect to a vector, a symmetric tensor or a tensor and conversely, derivative of a tensor with respect to a symmetric tensor).

Template Parameters
Type1type of the derivated object
Type2type of the object with respect to which the derivative is taken
Parameters
[out]destrotated block, which may be the source
[in]srcblock
[in]rrotation matrix