Macaulay2 Engine
Loading...
Searching...
No Matches

◆ basis0_full()

void KBasis::basis0_full ( )
private

Definition at line 279 of file matrix-kbasis.cpp.

280{
281 // insert the all zeros vector
282 if (!try_insert_full()) return;
283 if (mVariables.size() == 0) return;
284
285 int curr = 0;
286 do {
287 int vcurr = mVariables[curr];
288 // increase the curr index until we reach a limit
289 do {
290 if (limit == 0 || system_interrupted()) return;
291 kb_exp[vcurr]++;
292 kb_exp_weight += var_wts[curr];
293 } while (try_insert_full());
294 } while (backtrack(curr));
295}
std::vector< int > mVariables
bool try_insert_full()
bool backtrack(int &curr)
int kb_exp_weight
int * var_wts
bool system_interrupted()

References backtrack(), kb_exp, kb_exp_weight, limit, mVariables, system_interrupted(), try_insert_full(), and var_wts.

Referenced by compute().