/* ldumat.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 void ldumat(double *a,double *u,int m,int n) { double *p0,*q0,*p,*q,*w; int i,j,k,mm; double s,h; w=(double *)calloc(m,sizeof(double)); for(i=0,mm=m*m,q=u; i=0 ;--i,++mm,p0-=n+1,q0-=m+1){ if(*p0!=0.){ for(j=0,p=p0+n,h=1.; j