4 #define ran (TYPE)(((double) rand() / (RAND_MAX)) * (MAX-MIN) + MIN) 9 for (i = 0; i <
N; i++){
15 cur_indx = (
TYPE)(((
double) rand() / (RAND_MAX)) * ((L-1) - cur_indx) + cur_indx);
16 printf(
"idx %d \n",cur_indx);
19 colind[i*L +j] = cur_indx;
47 for(i = 0; i <
N; i++){
void ellpack(TYPE nzval[N *L], int32_t cols[N *L], TYPE vec[N], TYPE out[N])
void fillVal(TYPE A[NNZ])
x
Return the smallest n such that 2^n >= _x.