mindsponge.common.rots_mul_rots
- mindsponge.common.rots_mul_rots(x, y)[源代码]
获取两个旋转矩阵相乘结果,对目标进行两次旋转。
- 参数:
x (tuple) - 旋转矩阵x,
。y (tuple) - 旋转矩阵y,
。
- 返回:
tuple,旋转矩阵x和旋转矩阵y的矩阵相乘结果,
。- 支持平台:
Ascend
GPU
样例:
>>> from mindsponge.common.geometry import rots_mul_rots >>> rtos_0 = (1, 1, 1, 1, 1, 1, 1) >>> rtos_1 = (1, 1, 1, 1, 1, 1, 1) >>> result = rots_mul_rots(rots_0, rots_1) >>> print(output) (3, 3, 3, 3, 3, 3, 3, 3, 3)