gstools.tools.givens_rotation

gstools.tools.givens_rotation(dim, plane, angle)[source]

Givens rotation matrix in arbitrary dimensions.

Parameters:
  • dim (int) – spatial dimension

  • plane (list of int) – the plane to rotate in, given by the indices of the two defining axes. For example the xy plane is defined by (0,1)

  • angle (float or list) – the rotation angle in the given plane

Returns:

Rotation matrix.

Return type:

numpy.ndarray