mindsponge.common.rigids_mul_rots
- mindsponge.common.rigids_mul_rots(x, y)[source]
Numpy version of getting results rigid
multiply rotations .Multiply rotations of rigid
with rotations , the result is rigids new rotations. Translations of rigid will not changed.- Parameters
- Returns
tuple(rots, trans), length is 2, rigid whose rotations are changed.
- Supported Platforms:
Ascend
GPU
Examples
>>> import mindsponge >>> a = ((1, 2, 3, 4, 5, 6, 7, 8, 9), (3, 4, 5)) >>> b = (2, 3, 4, 1, 5, 6, 3, 8, 7) >>> b1 = mindsponge.common.rigids_mul_rots(a,b) >>> print(b1) ((13, 37, 37, 31, 85, 88, 49, 133, 139), (3, 4, 5))