/* psqvar.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 "orpol.h" void psqvar(double *v,double sig,Opol *c,int m) { int i,j,k; double *sm,*s,*s1,*u,w,x; if(m>1){ sm=(double *)calloc(m*m+m,sizeof(double)); u=sm+m*m; sm[0]=sm[m+1]=1.; sm[1]= -c[0].df; for(i=2; i