/*** vpst2#c_dvlax **********************************************/ /* */ /* c_ssl2 test program copyright fujitsu ltd. 1997 */ /* */ /* this program tests */ /* c_dvlax , */ /* which work together to solve a system of linear equations */ /* with a real matrix. */ /* this program also needs the following: */ /* c_dmav. */ /* this program was coded on Nov.10,1997. */ /* */ /****************************************************************/ #include #include #include #include #include "cssl.h" #define MAXN 501 #define NTESTS 5 void mata(double a[][MAXN],int n); void tstprt(double b[],int n,double errbd,double dtime); int MAIN__() { static double a[MAXN][MAXN],x[MAXN],b[MAXN]; static double vw[MAXN]; static int ip[MAXN]; double epsz,errbd,dtime; int i,j,n,is; clock_t ita,itb; int ni[NTESTS]={100,200,300,400,500}; int isw,ie,icon; printf("****************************************"); printf("**************************\n"); printf("* "); printf(" *\n"); printf("* --- c_dvlax --- "); printf(" *\n"); printf("* "); printf(" *\n"); printf("* if sign of 'ok' is found in every 're"); printf("mark' entry *\n"); printf("* the above subroutine have been certif"); printf("ied as correct *\n"); printf("* "); printf(" *\n"); printf("****************************************"); printf("**************************\n"); printf(" dimension error time(s) remark\n"); for(i=0;i