mindsponge.common.invert_rots
- mindsponge.common.invert_rots(m)[source]
Computes inverse of rotations
.rotations
and inverse of is .- Parameters
m (tuple) – rotations
, length is 9. Data type is constant or Tensor with same shape.- Returns
tuple, inverse of rotations
, length is 9. Data type is constant or Tensor with same shape.
- Supported Platforms:
Ascend
GPU
Examples
>>> import mindsponge >>> m = (1, 2, 3, 4, 5, 6, 7, 8, 9) >>> inv_m = mindsponge.common.invert_rots(m) >>> print(inv_m) (1, 4, 7, 2, 5, 8, 3, 6, 9)