/* fixts.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 "arma.h" #include void setdr(int k); extern int np; extern struct mcof *par; double fixts(double *x,int n,double *var,double *cr) { double *cp,*p,*q,*r,*s,*pmax; struct mcof *pp; double e,ssq,drmod(double,double *); int j,k,psinv(double *,int); cp=(double *)calloc(np,sizeof(double)); for(p=var,pmax=p+np*np; pcf += *s++; } } else ssq= -1.; free(cp); setdr(0); return ssq; }