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

◆ FF_LUComputation()

FF_LUComputation::FF_LUComputation ( MutableMatrix * M)
private

Definition at line 10 of file fractionfreeLU.cpp.

11 : R(M0->get_ring()), M(M0), col_perm(nullptr), need_div(nullptr)
12{
13 int ncols = static_cast<int>(M->n_cols());
14 col_perm = newarray_atomic(int, ncols);
15 need_div = newarray_atomic(bool, ncols);
16 pivot_col = ncols; // Will be decremented before use
17 for (int i = 0; i < ncols; i++)
18 {
19 col_perm[i] = i;
20 need_div[i] = false;
21 }
22
23 pivot = R->from_long(1);
24 lastpivot = R->from_long(1);
25}
MutableMatrix * M
#define newarray_atomic(T, len)
Definition newdelete.hpp:91

References col_perm, lastpivot, M, need_div, newarray_atomic, pivot, pivot_col, and R.

Referenced by DO().