Method

NumCosmoMathNNLSsolve_lowrankqp

Declaration [src]

gdouble
ncm_nnls_solve_lowrankqp (
  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 LowRankQP quadratic programming code.

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.