mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 18:49:26 +08:00
fix mypy annotations for arithmetic_analysis (#6040)
* fixed mypy annotations for arithmetic_analysis * shortened numpy references
This commit is contained in:
@ -6,9 +6,13 @@ Reference:
|
||||
from __future__ import annotations
|
||||
|
||||
import numpy as np
|
||||
import numpy.typing as NDArray
|
||||
from numpy import float64
|
||||
|
||||
|
||||
def lower_upper_decomposition(table: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
|
||||
def lower_upper_decomposition(
|
||||
table: NDArray[float64],
|
||||
) -> tuple[NDArray[float64], NDArray[float64]]:
|
||||
"""Lower-Upper (LU) Decomposition
|
||||
|
||||
Example:
|
||||
|
Reference in New Issue
Block a user