santex.tensor package#
Submodules#
santex.tensor.tensor module#
- class santex.tensor.tensor.Tensor(data=None)#
Bases:
object- euler_to_rotation(phi1, phi, phi2)#
Convert Euler angles to a rotation matrix.
Parameters: - phi1 (float): First Euler angle in degrees. - phi (float): Second Euler angle in degrees. - phi2 (float): Third Euler angle in degrees.
Returns: - array: The rotation matrix corresponding to the Euler angles.
- rotate_tensor(tensor, phi1, phi, phi2)#
Rotate a tensor using Euler angles.
Parameters: - tensor (array-like): The input tensor to be rotated. - phi1 (float): First Euler angle in degrees. - phi (float): Second Euler angle in degrees. - phi2 (float): Third Euler angle in degrees.
Returns: - array: The rotated tensor.
- tensor_to_voigt(tensor)#
Convert a tensor to its Voigt notation.
Parameters: - tensor (array): The input tensor.
Returns: - array-like: The tensor converted to Voigt notation.
- voigt_to_tensor(voigt)#
Convert Voigt notation back to a tensor.
Parameters: - voigt (array): The input Voigt notation.
Returns: - array: The Voigt notation converted back to a tensor.