- pmatrix = (double *) malloc(size*sizeof(double *));
- permuted = (double *) malloc(size*sizeof(double *));
+ pmatrix = (double *) malloc(size*sizeof(double));
+ permuted = (double *) malloc(size*sizeof(double));
//changing ptt_size to row
double * permuted_ttests, * pvalues, * tinitial;
//changing ptt_size to row
double * permuted_ttests, * pvalues, * tinitial;
- permuted_ttests = (double *) malloc(size*sizeof(double *));
- pvalues = (double *) malloc(size*sizeof(double *));
- tinitial = (double *) malloc(size*sizeof(double *));
+ permuted_ttests = (double *) malloc(size*sizeof(double));
+ pvalues = (double *) malloc(size*sizeof(double));
+ tinitial = (double *) malloc(size*sizeof(double));
double *expect, *prc, *emin,*prt,*pre;
double e=0, prc1=0, emin1=0, prt1=0, pre1=0;
double *expect, *prc, *emin,*prt,*pre;
double e=0, prc1=0, emin1=0, prt1=0, pre1=0;
testp(permuted_ttests, permutes, permuted,pmatrix, nc, nr, gvalue,tinitial,pvalues);
// Checks to make sure the matrix isn't sparse.
double * sparse, * sparse2;
testp(permuted_ttests, permutes, permuted,pmatrix, nc, nr, gvalue,tinitial,pvalues);
// Checks to make sure the matrix isn't sparse.
double * sparse, * sparse2;
- sparse = (double *) malloc(size*sizeof(double *));
- sparse2 = (double *) malloc(size*sizeof(double *));
+ sparse = (double *) malloc(size*sizeof(double));
+ sparse2 = (double *) malloc(size*sizeof(double));
fexact(nr,nc,data, ldtabl,expect,prc,emin,prt,pre,work);
if (*pre>.999999999){
fexact(nr,nc,data, ldtabl,expect,prc,emin,prt,pre,work);
if (*pre>.999999999){