Document feedback

Question document fragment

When a question document fragment contains a formula, it is displayed as a space.

Submission type
issue

It's a little complicated...

I'd like to ask someone.

Please select the submission type

Problem type
Specifications and Common Mistakes

- Specifications and Common Mistakes:

- Misspellings or punctuation mistakes,incorrect formulas, abnormal display.

- Incorrect links, empty cells, or wrong formats.

- Chinese characters in English context.

- Minor inconsistencies between the UI and descriptions.

- Low writing fluency that does not affect understanding.

- Incorrect version numbers, including software package names and version numbers on the UI.

Usability

- Usability:

- Incorrect or missing key steps.

- Missing main function descriptions, keyword explanation, necessary prerequisites, or precautions.

- Ambiguous descriptions, unclear reference, or contradictory context.

- Unclear logic, such as missing classifications, items, and steps.

Correctness

- Correctness:

- Technical principles, function descriptions, supported platforms, parameter types, or exceptions inconsistent with that of software implementation.

- Incorrect schematic or architecture diagrams.

- Incorrect commands or command parameters.

- Incorrect code.

- Commands inconsistent with the functions.

- Wrong screenshots.

- Sample code running error, or running results inconsistent with the expectation.

Risk Warnings

- Risk Warnings:

- Lack of risk warnings for operations that may damage the system or important data.

Content Compliance

- Content Compliance:

- Contents that may violate applicable laws and regulations or geo-cultural context-sensitive words and expressions.

- Copyright infringement.

Please select the type of question

Problem description

Describe the bug so that we can quickly locate the problem.

mindsponge.common.rots_mul_rots

mindsponge.common.rots_mul_rots(x, y)[source]

Get result of rotation matrix x multiply rotation matrix y.

xx=xx1xx2+xy1yx2+xz1zx2xy=xx1xy2+xy1yy2+xz1zy2xz=xx1xz2+xy1yz2+xz1zz2yx=yx1xx2+yy1yx2+yz1zx2yy=yx1xy2+yy1yy2+yz1zy2yz=yx1xz2+yy1yz2+yz1zz2zx=zx1xx2+zy1yx2+zz1zx2zy=zx1xy2+zy1yy2+zz1zy2zz=zx1xz2+zy1yz2+zz1zz2
Parameters
  • x (tuple) – rots x, (xx1,xy1,xz1,yx1,yy1,yz1,zx1,zy1,zz1).

  • y (tuple) – rots y, (xx2,xy2,xz2,yx2,yy2,yz2,zx2,zy2,zz2).

Returns

tuple, the result of rots x multiplying rots y. Shape is (xx,xy,xz,yx,yy,yz,zx,zy,zz).

Supported Platforms:

Ascend GPU

Examples

>>> 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)