Method

NumCosmoMathNNLSsolve_LH

Declaration [src]

gdouble
ncm_nnls_solve_LH (
  NcmNNLS* nnls,
  NcmMatrix* A,
  NcmVector* x,
  NcmVector* f
)

Description [src]

Solves the system $A\vec{x} = \vec{f}$ for $\vec{x}$ imposing the non negativity constraint on $\vec{x}$, i.e., $\vec{x} > 0$. This method solves the system using the original code by Charles L. Lawson and Richard J. Hanson translated to C using f2c.

Parameters

A

Type: NcmMatrix

A NcmMatrix $A$.

The data is owned by the caller of the method.
x

Type: NcmVector

A NcmVector $\vec{x}$.

The data is owned by the caller of the method.
f

Type: NcmVector

A NcmVector $\vec{f}$.

The data is owned by the caller of the method.

Return value

Type: gdouble

The Euclidean norm of the residuals.