220 Star 945 Fork 694

GVPMindSpore/mindscience

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sponge.function.calc_vector.rst 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
Li Qingguo 提交于 2023-10-11 10:29 +08:00 . fix doc

sponge.function.calc_vector

.. py:function:: sponge.function.calc_vector(initial: Tensor, terminal: Tensor, pbc_box: Tensor = None)

    计算从起点到终点的向量。

    参数:
        - **initial** (Tensor) - 起点坐标,shape为 :math:`(..., D)` 。其中, :math:`D` 表示模拟系统的维度(通常为3)。
        - **terminal** (Tensor) - 终点坐标,shape为 :math:`(..., D)` 。
        - **pbc_box** (Tensor) - PBC box,shape为 :math:`(D)` 或 :math:`(B, D)` 。其中,:math:`B` 为batch size。默认为 ``None`` 。

    返回:
        Tensor。计算所得向量。shape为 :math:`(..., D)`。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mindspore/mindscience.git
git@gitee.com:mindspore/mindscience.git
mindspore
mindscience
mindscience
r0.5

搜索帮助