treams.rotate¶
- treams.rotate(phi, theta=0, psi=0, *, basis, where=True)¶
Rotation matrix.
For the given Euler angles apply a rotation for the given basis. In some basis sets only rotations around the z-axis are permitted.
- Parameters:
phi (float) – First Euler angle (rotation about z)
theta (float, optional) – Second Euler angle (rotation about y)
psi (float, optional) – Third Euler angle (rotation about z)
basis (
BasisSet
or tuple) – Basis set, if it is a tuple of two basis sets the output and input modes are taken accordingly, else both sets of modes are the same.where (array-like, bool, optional) – Only evaluate parts of the rotation matrix, the given array must have a shape that matches the output shape.