Upgrade to Python 3.13 (#11588)

This commit is contained in:
Christian Clauss
2024-09-30 23:01:15 +02:00
committed by GitHub
parent a7bfa22455
commit 0177ae1cd5
35 changed files with 135 additions and 131 deletions

View File

@ -14,11 +14,11 @@ def norm_squared(vector: ndarray) -> float:
Returns:
float: squared second norm of vector
>>> norm_squared([1, 2])
>>> int(norm_squared([1, 2]))
5
>>> norm_squared(np.asarray([1, 2]))
>>> int(norm_squared(np.asarray([1, 2])))
5
>>> norm_squared([0, 0])
>>> int(norm_squared([0, 0]))
0
"""
return np.dot(vector, vector)