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

◆ calc()

int PfaffianComputation::calc ( int nsteps = -1)

Definition at line 46 of file pfaff.cpp.

47{
48 for (;;)
49 {
50 int result = step();
51 if (result == COMP_DONE) return COMP_DONE;
52 if (--nsteps == 0) return COMP_DONE_STEPS;
54 }
55}
@ COMP_DONE_STEPS
Definition computation.h:69
@ COMP_DONE
Definition computation.h:60
@ COMP_INTERRUPTED
Definition computation.h:57
bool system_interrupted()
VALGRIND_MAKE_MEM_DEFINED & result(result)

References COMP_DONE, COMP_DONE_STEPS, COMP_INTERRUPTED, result(), step(), and system_interrupted().

Referenced by Matrix::pfaffians().