Page 1 of 1

Getting Started with dgels

PostPosted: Wed Feb 25, 2015 12:07 am
by Keith47
I am getting started with LAPACK and beginning with dgels.c. In order to begin, I have reviewed the c code and the user guide section on Linear Least Squares Problems. In order to begin, I need to ask some questions that some will see as very basic, and would appreciate your help.

Using c/c++ I am assembling a linear regression problem having one dependent variable, y, and four independent variables, x1, x2, x3, and x4.

The dgels.c function takes an input/output array A, and another input/output array B. Another way of saying this would be, how do I translate the y=m1x1+m2x2+m3x3+m4x4+b formula to the requirements of dgels.c.

How should I prepare my data for A and or B to obtain the coefficients?

If this question should be posted in another discussion please let me know.

Thank you.

Keith