class_docstr: See: https://arxiv.org/pdf/1711.02508.pdf.
class_docstr_tok: ["See",":","https",":","\/\/arxiv.org\/pdf\/1711.02508.pdf","."]
docstr: Unsigned rotation matrix angle.
docstr_tok: ["Unsigned","rotation","matrix","angle","."]
code: def matrix_angle_abs(mx: torch.Tensor):
      """Unsigned rotation matrix angle."""
      trace = torch.diagonal(mx[..., :3, :3], dim1=-1, dim2=-2).sum(
          -1, keepdim=True
      )
      return torch.acos((trace - 1.0) / 2.0)
  
imports: import numpy
  import pytest
  import torch
  import kornia
  from kornia.testing import assert_close
label_desc: Use image node_id 1 for calling the TestAngleOfRotations obj's underlying member method code with example usage: obj.matrix_angle_abs(mx) and returns: torch