MCPcopy Index your code
hub / github.com/google-deepmind/alphafold / dot

Method dot

alphafold/model/geometry/vector.py:83–85  ·  view source on GitHub ↗

Compute dot product between 'self' and 'other'.

(self, other: Vec3Array)

Source from the content-addressed store, hash-verified

81 return Vec3Array(new_x, new_y, new_z)
82
83 def dot(self, other: Vec3Array) -> Float:
84 """Compute dot product between 'self' and 'other'."""
85 return self.x * other.x + self.y * other.y + self.z * other.z
86
87 def norm(self, epsilon: float = 1e-6) -> Float:
88 """Compute Norm of Vec3Array, clipped to epsilon."""

Callers 8

normMethod · 0.95
norm2Method · 0.95
from_two_vectorsMethod · 0.80
dotFunction · 0.80
dihedral_angleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected