CDNNLS#

class niriss_tools.grism.CDNNLS(X, y)[source]#

Bases: object

Coordinate descent NNLS.

Parameters:
XArrayLike

The coefficient array.

yArrayLike

The RHS vector.

Methods Summary

run([method, n_iter, epsilon])

Run a non-negative least squares solver.

Methods Documentation

run(method='classic', n_iter=None, epsilon=1e-06, **kwargs)[source]#

Run a non-negative least squares solver.

Parameters:
methodstr, optional

The method to use, either the default “classic”, or “antilop”.

n_iterint | None, optional

How many iterations to run. If None, then this is set to 3*X.shape[1].

epsilonfloat, optional

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

**kwargsdict, optional

Other arguments to pass to the individual methods.