openfold.utils.geometry.vector¶
Vec3Array Class.
Classes
|
Functions
|
|
|
Computes torsion angle for a quadruple of points. |
|
|
|
Computes euclidean distance between 'vec1' and 'vec2'. |
|
|
|
|
|
Computes square of euclidean distance between 'vec1' and 'vec2'. |
- class Vec3Array(x: 'torch.Tensor', y: 'torch.Tensor', z: 'torch.Tensor')¶
-
- cross(other)¶
Compute cross product between ‘self’ and ‘other’.
- dot(other)¶
Compute dot product between ‘self’ and ‘other’.
- classmethod from_array(tensor)¶
- norm(epsilon=1e-06)¶
Compute Norm of Vec3Array, clipped to epsilon.
- norm2()¶
- normalized(epsilon=1e-06)¶
Return unit vector with optional clipping.
- classmethod zeros(shape, device='cpu')¶
Return Vec3Array corresponding to zeros of given shape.
- property shape¶
- cross(vector1, vector2)¶
- dihedral_angle(a, b, c, d)¶
Computes torsion angle for a quadruple of points.
For points (a, b, c, d), this is the angle between the planes defined by points (a, b, c) and (b, c, d). It is also known as the dihedral angle.
- dot(vector1, vector2)¶
- euclidean_distance(vec1, vec2, epsilon=1e-06)¶
Computes euclidean distance between ‘vec1’ and ‘vec2’.
- Parameters:
- Returns:
Array of euclidean distances; shape will be result of broadcasting ‘vec1’ and ‘vec2’
- Return type:
- norm(vector, epsilon=1e-06)¶
- normalized(vector, epsilon=1e-06)¶
- square_euclidean_distance(vec1, vec2, epsilon=1e-06)¶
Computes square of euclidean distance between ‘vec1’ and ‘vec2’.
- Parameters:
- Returns:
Array of square euclidean distances; shape will be result of broadcasting ‘vec1’ and ‘vec2’
- Return type: