22 lines
448 B
Python
22 lines
448 B
Python
from __future__ import annotations
|
|
from typing import TYPE_CHECKING, Tuple
|
|
import numpy as np
|
|
|
|
if TYPE_CHECKING:
|
|
import numpy.typing as npt
|
|
|
|
def nnls(
|
|
a: npt.ArrayLike,
|
|
mda: int,
|
|
m: int,
|
|
n: int,
|
|
b: npt.ArrayLike,
|
|
x: npt.ArrayLike,
|
|
rnorm: float,
|
|
w: float,
|
|
zz: float,
|
|
index_bn: int,
|
|
mode: int,
|
|
maxiter: int
|
|
) -> Tuple[npt.ArrayLike, float, int]: ...
|