fnnls#

niriss_tools.grism.fnnls(A, x, max_iterations=1000, tolerance=1e-06)[source]#

A wrapper around a numpy implementation of the FNNLS algorithm.

Parameters:
AArrayLike

The coefficient array.

xArrayLike

The RHS vector.

max_iterationsint | None, optional

How many iterations to run, by default 1000.

tolerancefloat, optional

The tolerance to use for the stopping condition, by default 1e-6.

Returns:
ArrayLike

The solution vector.