Top | ![]() |
![]() |
![]() |
![]() |
Functions
NcmNNLS * | ncm_nnls_new () |
NcmNNLS * | ncm_nnls_ref () |
void | ncm_nnls_free () |
void | ncm_nnls_clear () |
void | ncm_nnls_set_umethod () |
NcmNNLSUMethod | ncm_nnls_get_umethod () |
void | ncm_nnls_set_reltol () |
gdouble | ncm_nnls_get_reltol () |
guint | ncm_nnls_get_nrows () |
guint | ncm_nnls_get_ncols () |
gdouble | ncm_nnls_solve () |
gdouble | ncm_nnls_solve_LH () |
gdouble | ncm_nnls_solve_lowrankqp () |
gdouble | ncm_nnls_solve_splx () |
gdouble | ncm_nnls_solve_gsmo () |
NcmVector * | ncm_nnls_get_residuals () |
Functions
ncm_nnls_clear ()
void
ncm_nnls_clear (NcmNNLS **nnls
);
Decrease the reference count of nnls
by one, and sets the pointer *nnls
to
NULL.
ncm_nnls_set_umethod ()
void ncm_nnls_set_umethod (NcmNNLS *nnls
,NcmNNLSUMethod umethod
);
Sets which unconstrained least-squares method to use.
ncm_nnls_get_umethod ()
NcmNNLSUMethod
ncm_nnls_get_umethod (NcmNNLS *nnls
);
Gets the unconstrained least-squares method being used.
ncm_nnls_set_reltol ()
void ncm_nnls_set_reltol (NcmNNLS *nnls
,const gdouble reltol
);
Sets relative tolerance to reltol
.
ncm_nnls_get_reltol ()
gdouble
ncm_nnls_get_reltol (NcmNNLS *nnls
);
Gets the relative tolerance being used.
ncm_nnls_solve ()
gdouble ncm_nnls_solve (NcmNNLS *nnls
,NcmMatrix *A
,NcmVector *x
,NcmVector *f
);
Solves the system $A\vec{x} = \vec{f}$ for $\vec{x}$ imposing the non negativity constraint on $\vec{x}$, i.e., $\vec{x} > 0$.
ncm_nnls_solve_LH ()
gdouble ncm_nnls_solve_LH (NcmNNLS *nnls
,NcmMatrix *A
,NcmVector *x
,NcmVector *f
);
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.
ncm_nnls_solve_lowrankqp ()
gdouble ncm_nnls_solve_lowrankqp (NcmNNLS *nnls
,NcmMatrix *A
,NcmVector *x
,NcmVector *f
);
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.
ncm_nnls_solve_splx ()
gdouble ncm_nnls_solve_splx (NcmNNLS *nnls
,NcmMatrix *A
,NcmVector *x
,NcmVector *f
);
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 function libqp_splx_solver from libqp.
ncm_nnls_solve_gsmo ()
gdouble ncm_nnls_solve_gsmo (NcmNNLS *nnls
,NcmMatrix *A
,NcmVector *x
,NcmVector *f
);
ncm_nnls_get_residuals ()
NcmVector *
ncm_nnls_get_residuals (NcmNNLS *nnls
);
Gets the solution residuals, this method return the last residuals
computed during ncm_nnls_solve()
. If ncm_nnls_solve()
was not
called the return is undefined.
Types and Values
Property Details
The “ncols”
property
“ncols” guint
Number of cols.
Owner: NcmNNLS
Flags: Read / Write / Construct Only
Allowed values: >= 1
Default value: 1
The “nrows”
property
“nrows” guint
Number of rows.
Owner: NcmNNLS
Flags: Read / Write / Construct Only
Allowed values: >= 1
Default value: 1
The “reltol”
property
“reltol” double
Relative tolerance.
Owner: NcmNNLS
Flags: Read / Write / Construct
Allowed values: [G_MINDOUBLE,0.1]
Default value: 2.22045e-16
The “umethod”
property
“umethod” NcmNNLSUMethod
Unconstrained method.
Owner: NcmNNLS
Flags: Read / Write / Construct
Default value: NCM_NNLS_UMETHOD_NORMAL