tfg.geometry.transformation.rotation_matrix_2d.is_valid

Determines if a matrix is a valid rotation matrix.

Determines if a matrix \(\mathbf{R}\) is a valid rotation matrix by checking that \(\mathbf{R}^T\mathbf{R} = \mathbf{I}\) and \(\det(\mathbf{R}) = 1\).

In the following, A1 to An are optional batch dimensions.

matrix A tensor of shape [A1, ..., An, 2, 2], where the last two dimensions represent a 2d rotation matrix.
atol The absolute tolerance parameter.
name A name for this op that defaults to "rotation_matrix_2d_is_valid".

A tensor of type bool and shape [A1, ..., An, 1] where False indicates that the input is not a valid rotation matrix.