sponge.function
API Name |
Description |
Supported Platforms |
Compute angle between two vectors. |
|
|
Compute angle \(\angle{ABC}\) formed by the position coordinates of three positions \(A\), \(B\) and \(C\) without periodic boundary condition. |
|
|
Compute angle \(\angle{ABC}\) formed by the position coordinates of three positions \(A\), \(B\) and \(C\) at periodic boundary condition. |
|
|
Compute angle formed by three positions \(A\), \(B\) and \(C\) with or without periodic boundary condition. |
|
|
Compute distance between position A and B without perodic bundary condition. |
|
|
Compute distance between position \(A\) and \(B\) at perodic bundary condition. |
|
|
Compute distance between position \(A\) and \(B\). |
|
|
Compute torsion angle formed by two direction vectors \(\vec{v_1}\) and \(\vec{v_2}\) and an axis vector \(\vec{v_{axis}}\). |
|
|
Compute torsion angle A-B-C-D formed by four positions \(A\), \(B\), \(C\) and \(D\) without periodic boundary condition. |
|
|
Compute torsion angle A-B-C-D formed by four positions \(A\), \(B\), \(C\) and \(D\) at periodic boundary condition. |
|
|
Compute torsion angle \(A-B-C-D\) formed by four positions \(A\), \(B\), \(C\) and \(D\) with or without periodic boundary condition. |
|
|
Compute vector from initial point to terminal point without perodic bundary condition. |
|
|
Compute vector from initial point to terminal point at perodic bundary condition. |
|
|
Compute vector from initial point to terminal point. |
|
|
convert energy according to difference units. |
|
|
Energy. |
|
|
Gather value from the last axis (axis=-1) of the tensor according to index. |
|
|
Gather vector from the penultimate axis (axis=-2) of the tensor according to index. |
|
|
get energy reference. |
|
|
get the name of energy unit. |
|
|
get energy unit. |
|
|
get integer type of the input value |
|
|
get length reference. |
|
|
get name of length unit. |
|
|
get length unit. |
|
|
get ndarray type of the input value |
|
|
The class to calculate distance with or without PBC box |
To Be Developed |
|
Module for calculating B matrix whose dimensions are: C. |
To Be Developed |
|
Module for calculating the differentiation of B matrix whose dimensions are: K*N*D. |
To Be Developed |
|
The class to get vector with or without PBC box |
To Be Developed |
|
convert length according to different units. |
|
|
Length. |
|
|
Reshape the pbc_box as the same ndim. |
|
|
calculate the periodic image of the PBC box |
|
|
set global length unit. |
|
|
set global energy unit. |
|
|
set global units. |
|
|
Unit class to record and convert the length and energy units. |
|
|
Make the value of vector \(\vec{v}\) at a single PBC box \(\vec{L}\). |
|
|
A class to generate velocities for atoms in system according to temperature |
To Be Developed |
|
Return True if ALL values x in the iterable is None.. |
|
|
Return True if ALL values x in the iterable is Not None. |
|
|
Return True if ANY values x in the iterable is None. |
|
|
Return True if ANY values x in the iterable is NOT None. |
|
|
Return if batch_bond exists in bonds. |
To Be Developed |
|
Check whether the two shapes match the rule of broadcast. |
|
|
Connect tensor in the first axis (axis=0). |
|
|
Connect tensor in the last axis (axis=-1). |
|
|
Connect tensor in the penultimate axis (axis=-2). |
|
|
get coordinate in main PBC box |
|
|
Calculate Coulomb interaction. |
|
|
get arguments of a class. |
|
|
Get the tensor of energy in specific unit |
To Be Developed |
|
get initializer by name. |
|
|
Get the tensor of length in specific unit |
To Be Developed |
|
get mindspore.Tensor type of the input value |
|
|
get mindspore.Tensor type of the input value |
|
|
Get the Hamiltonian-product of the given quaternion and tensor. |
To Be Developed |
|
Returns a Tensor with the same shape and contents as input. |
|
|
Reduces a dimension to 1 by averaging the elements in the dimension of x along the axis, and the dimensions of the output and input are the same. |
|
|
Reduces a dimension to 1 by multiplying the elements in the dimension of x along the axis, and the dimensions of the output and input are the same. |
|
|
Reduces a dimension to 1 by summing the elements in the dimension of x along the axis, and the dimensions of the output and input are the same. |
|
|
Calculate Lennard-Jones (LJ) potential with \(\epsilon\) and \(\sigma\). |
|
|
Calculate Lennard-Jones (LJ) potential with \(\epsilon\) and \(r_0\). |
|
|
get value of difference between periodic variables. |
|
|
get the value in the periodic range. |
|
|
Get the quaternion conjugate of the given tensor. |
To Be Developed |
|
Get the quaternion multiplication of the given tensor. |
To Be Developed |
|
Reduces a dimension of a tensor by the "logicalAND" of all elements in the dimension, by default. |
|
|
Reduces a dimension of a tensor by the "logical OR" of all elements in the dimension, by default. |
|
|
Reduces a dimension of a tensor by multiplying all elements in the dimension, by default. |
|
|
Return the Tensor after deleting the dimension of size 1 from the first axis (axis=0). |
|
|
Return the Tensor after deleting the dimension of size 1 from the last axis (axis=-1). |
|
|
Return the Tensor after deleting the dimension of size 1 from the penultimate axis (axis=-2). |
|
|
Stacks a list of tensors in the first axis (axis=0). |
|
|
Stacks a list of tensors in the last axis (axis=-1). |
|
|
Stacks a list of tensors in the penultimate axis (axis=-2). |
|