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

Method normalized

alphafold/model/geometry/vector.py:98–100  ·  view source on GitHub ↗

Return unit vector with optional clipping.

(self, epsilon: float = 1e-6)

Source from the content-addressed store, hash-verified

96 return self.dot(self)
97
98 def normalized(self, epsilon: float = 1e-6) -> Vec3Array:
99 """Return unit vector with optional clipping."""
100 return self / self.norm(epsilon)
101
102 @classmethod
103 def zeros(cls, shape, dtype=jnp.float32):

Callers 4

construct_inputMethod · 0.80
from_two_vectorsMethod · 0.80
normalizedFunction · 0.80

Calls 1

normMethod · 0.95

Tested by

no test coverage detected