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

◆ calc()

bool FF_LUComputation::calc ( )
private

Definition at line 81 of file fractionfreeLU.cpp.

82{
83 int c1;
84 while (choose_pivot_column(0, --pivot_col, c1))
85 {
86 if (system_interrupted()) return false;
87
88 if (pivot_col != c1)
89 {
90 M->interchange_columns(pivot_col, c1);
91
92 // swap need_div[pivot_col], need_div[c1]
93 bool tmp = need_div[pivot_col];
95 need_div[c1] = tmp;
96
97 // swap col_perm
98 int ctmp = col_perm[pivot_col];
100 col_perm[c1] = ctmp;
101 }
102
104 }
105 return true;
106}
bool choose_pivot_column(int lo, int hi, int &result)
MutableMatrix * M
void do_pivots(int lo, int hi, int pivot_col)
bool system_interrupted()

References choose_pivot_column(), col_perm, do_pivots(), M, need_div, pivot_col, and system_interrupted().

Referenced by DO().