it's not entirely clear that this speeds things up, but this should disable dense column row/col checking
parent
16b05c438d
commit
1014bff8b2
|
@ -371,7 +371,11 @@ Permutation::shared_ptr Inference::PermutationCOLAMD(const VARIABLEINDEXTYPE& va
|
||||||
for(size_t i=0; i<nVars+1; ++i)
|
for(size_t i=0; i<nVars+1; ++i)
|
||||||
cout << "p[" << i << "] = " << p[i] << endl;
|
cout << "p[" << i << "] = " << p[i] << endl;
|
||||||
|
|
||||||
double* knobs = NULL; /* colamd arg 6: parameters (uses defaults if NULL) */
|
//double* knobs = NULL; /* colamd arg 6: parameters (uses defaults if NULL) */
|
||||||
|
double knobs[CCOLAMD_KNOBS];
|
||||||
|
ccolamd_set_defaults(knobs);
|
||||||
|
knobs[CCOLAMD_DENSE_ROW]=-1;
|
||||||
|
knobs[CCOLAMD_DENSE_COL]=-1;
|
||||||
int stats[CCOLAMD_STATS]; /* colamd arg 7: colamd output statistics and error codes */
|
int stats[CCOLAMD_STATS]; /* colamd arg 7: colamd output statistics and error codes */
|
||||||
|
|
||||||
// call colamd, result will be in p
|
// call colamd, result will be in p
|
||||||
|
|
Loading…
Reference in New Issue