It's funny that you mentioned that since I had the same problem earlier
this morning.  I implemented it simply by adding these lines in the do
while loop in the example:

           for(int j=0; j<p; j++)
           gsl_vector_set(s->x, j, fabs(gsl_vector_get(s->x, j)));

It may not be optimal but it works.

Fred

On Mon, Jan 28, 2013 at 10:39 AM, Calvin Morrison <[email protected]>wrote:

> Hi,
>
> I know that GSL can do linear regression and least squares fitting,
> but I don't see anything about fitting to non-negative least squares.
>
> Any ideas? Can I do this with GSL?
>
> Thank you,
>
> Calvin
>
>

Reply via email to