/* tevmax.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.) * ------------------------------------------------------------------------ */ /* Test: evmax Uses: vmul vnrm matprt Optional input parameter: n -> size of real Hilbert matrix (defaults to n=5) */ #include "ccmath.h" int n=5; void main(int na,char **av) { int i,j; double *p,*a,*evc,*u; double ee; if(na==2) n=atoi(*++av); a=(double *)calloc(n*n+n+n,sizeof(double)); evc=a+n*n; u=evc+n; for(i=0,p=a; i