220 Star 951 Fork 700

GVPMindSpore/mindscience

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mindsponge.common.vecs_cross_vecs.rst 728 Bytes
一键复制 编辑 原始数据 按行查看 历史

mindsponge.common.vecs_cross_vecs

.. py:function:: mindsponge.common.vecs_cross_vecs(v1, v2)

    计算向量 :math:`v_1 = (x_1, x_2, x_3)` 和向量 :math:`v_2 = (y_1, y_2, y_3)` 的外积。

    .. math::

        cross_{res} = (x_2 * y_3 - x_3 * y_2, x_3 * y_1 - x_1 * y_3, x_1 * y_2 - x_2 * y_1)

    参数:
        - **v1** (tuple) - 向量 :math:`\vec v_1` ,长度为3,数据类型为标量或者shape相同的Tensor。
        - **v2** (tuple) - 向量 :math:`\vec v_2` ,长度为3,数据类型为标量或者shape相同的Tensor。

    返回:
        tuple。两个向量外积的结果,长度为3,数据类型为标量或者shape相同的Tensor。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mindspore/mindscience.git
git@gitee.com:mindspore/mindscience.git
mindspore
mindscience
mindscience
r0.5

搜索帮助