/* qrlsq.c CCMATH mathematics library source code. * * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. * This code may be redistributed under the terms of the GNU library * public license (LGPL). ( See the lgpl.license file for details.) * ------------------------------------------------------------------------ */ #include #include double qrlsq(double *a,double *b,int m,int n,int *f) { double *p,*q,*w,*v; double s,h,r; int i,j,k,mm,ms; if(m1){ for(j=0,q=p,s=0.; j0.){ h=sqrt(s); if(*p<0.) h= -h; s+= *p*h; s=1./s; w[0]+=h; for(k=1,ms=n-i; k