Non Negative Least Squares (NNLS)
On this page I have made available the source code for Lawson-Hanson's NNLS algorithm.
I have hacked the version of nnls.c that i found at:
Sandia labs
The versions below are in C++ and also attached is a sample file using a call to the subroutine
nnls (note that arrays are column major because of fortran code)
- nnls.h Header file for NNLS
- nnls.cc Source code
- tmain.cc Sample source code
Suvrit
Last modified: Mon Feb 9 12:54:01 CST 2004