#include #include #include "sparse.h" #include "timer.h" static int log2(int probsize) { int retval; retval = -1; while (probsize) { probsize = probsize >> 1; retval++; } return retval; } static void CreateRandomArray(SparseArray X,int probsize) { int i; int j; double density; double randval; static int num=0; if (num == 0) { srandom(1); } else { srandom(2); } density = ((double)log2(probsize))/probsize; for (i=0;i