/* radius.c -- Find the Spectral Radius of the Hilbert Matrix Written October 21, 2012 by Eric Olson for Math 701 */ #include #include #include #include "matlib.h" #include "tictoc.h" /* Compile time constants are K number of iterations of the power method N the dimension of the Hilbert matrix */ #define K 100 #define N 2048 double A[N][N],b[N],x[N]; int main(){ printf( "radius -- Find the Spectral Radius of the Hilbert Matrix\n" "Written October 21, 2012 by Eric Olson for Math 701\n"); printf("\nThe Hilbert matrix is size %d by %d\n",N,N); for(int i=0;i