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\).
Args
matrix
A tensor of shape [A1, ..., An, K, K], where the last two
dimensions represent a rotation matrix in K-dimensions.
atol
The absolute tolerance parameter.
name
A name for this op that defaults to "rotation_matrix_common_is_valid".
Returns
A tensor of type bool and shape [A1, ..., An, 1] where False indicates
that the input is not a valid rotation matrix.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-28 UTC."],[],[],null,["# tfg.geometry.transformation.rotation_matrix_common.is_valid\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/geometry/transformation/rotation_matrix_common.py#L28-L73) |\n\nDetermines if a matrix in K-dimensions is a valid rotation matrix. \n\n tfg.geometry.transformation.rotation_matrix_common.is_valid(\n matrix: type_alias.TensorLike,\n atol: type_alias.Float = 0.001,\n name: str = 'rotation_matrix_common_is_valid'\n ) -\u003e tf.Tensor\n\nDetermines if a matrix \\\\(\\\\mathbf{R}\\\\) is a valid rotation matrix by checking\nthat \\\\(\\\\mathbf{R}\\^T\\\\mathbf{R} = \\\\mathbf{I}\\\\) and \\\\(\\\\det(\\\\mathbf{R}) = 1\\\\).\n| **Note:** In the following, A1 to An are optional batch dimensions.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------|---------------------------------------------------------------------------------------------------------------------|\n| `matrix` | A tensor of shape `[A1, ..., An, K, K]`, where the last two dimensions represent a rotation matrix in K-dimensions. |\n| `atol` | The absolute tolerance parameter. |\n| `name` | A name for this op that defaults to \"rotation_matrix_common_is_valid\". |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A tensor of type `bool` and shape `[A1, ..., An, 1]` where False indicates that the input is not a valid rotation matrix. ||\n\n\u003cbr /\u003e"]]