mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 14:37:47 +00:00
Fix type
This commit is contained in:
parent
6c4e028eab
commit
a39c65cb5c
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ def project_along_vector(point: np.ndarray, vector: np.ndarray) -> np.ndarray:
|
||||||
|
|
||||||
def normalize_along_axis(
|
def normalize_along_axis(
|
||||||
array: np.ndarray,
|
array: np.ndarray,
|
||||||
axis: np.ndarray,
|
axis: int,
|
||||||
) -> np.ndarray:
|
) -> np.ndarray:
|
||||||
norms = np.sqrt((array * array).sum(axis))
|
norms = np.sqrt((array * array).sum(axis))
|
||||||
norms[norms == 0] = 1
|
norms[norms == 0] = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue