This file declares the rotateTangentOperatorBlock function.
- Date
- 20/10/2026
- Copyright
- Copyright (C) 2006-2025 CEA/DEN, EDF R&D. All rights reserved. This project is publicly released under either the GNU GPL Licence with linking exception or the CECILL-A licence. A copy of thoses licences are delivered with the sources of TFEL. CEA or EDF may also distribute this project under specific licensing conditions.
template<typename Type1, typename Type2, typename real>
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
-
| Type1 | type of the derivated object |
| Type2 | type of the object with respect to which the derivative is taken |
- Parameters
-
| [out] | dest | rotated block, which may be the source |
| [in] | src | block |
| [in] | r | rotation matrix |