
int wls(double* X, int n, int p, double* y, double* w,
        double* XTX, double *sqw, double* sqwX, double* sqwy, double* coef);



int wls(double* X, int n, int p, double* y, double* w,
        double* XTX, double *sqw, double* sqwX, double* sqwy, double* coef);

int calcFitted(double* X, int n, int p,
    double* y,
    double* coef,
    double* fitted);

int calcResid(double* X, int n, int p,
    double* y,
    double* coef,
    double* resid);


Add calcFitted and calcResid definitions.
Add calcFitted and calcResid definitions.
