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

◆ calc()

int DetComputation::calc ( int nsteps)

Definition at line 272 of file det.cpp.

273{
274 for (;;)
275 {
276 int r = step();
277 if (M2_gbTrace >= 3) emit_wrapped(".");
278 if (r == COMP_DONE) return COMP_DONE;
279 if (--nsteps == 0) return COMP_DONE_STEPS;
281 }
282}
int step()
Definition det.cpp:190
@ COMP_DONE_STEPS
Definition computation.h:69
@ COMP_DONE
Definition computation.h:60
@ COMP_INTERRUPTED
Definition computation.h:57
bool system_interrupted()
int M2_gbTrace
Definition m2-types.cpp:52
void emit_wrapped(const char *s)
Definition text-io.cpp:27

References COMP_DONE, COMP_DONE_STEPS, COMP_INTERRUPTED, emit_wrapped(), M2_gbTrace, step(), and system_interrupted().

Referenced by Matrix::exterior(), Matrix::minors(), and Matrix::minors().