sponge.function.calc_vector_nopbc

View Source On Gitee
sponge.function.calc_vector_nopbc(initial: Tensor, terminal: Tensor)[source]

Compute vector from initial point to terminal point without perodic bundary condition.

Parameters
  • initial (Tensor) – Tensor of shape \((..., D)\), where \(D\) is the spatial dimension of the simulation system (usually 3). Data type is float. Position coordinate of initial point

  • terminal (Tensor) – Tensor of shape \((..., D)\). Data type is float. Position coordinate of terminal point

Returns

vector (Tensor), a tensor of shape \((..., D)\). Data type is float.

Supported Platforms:

Ascend GPU