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

◆ new_GB_elements()

void F4GB::new_GB_elements ( )
private

Definition at line 976 of file f4.cpp.

977{
978 /* After LU decomposition, loop through each
979 row of the matrix. If the corresponding
980 lead term is not in the initial ideal (or, at least,
981 wasn't) then insert GB element (and so update spairs, etc,
982 but don't do auto_reduce...)
983
984 If instead the lead term is not new, then keep track of this
985 information somehow: place ... into a monheap...
986 */
987
988 /* If we can place the possible new elements first, or in a separate place,
989 then
990 we don't need to loop through all of these */
991
992 mtbb::tick_count t0 = mtbb::tick_count::now();
993 for (int r = 0; r < mat->rows.size(); r++)
994 {
995 if (is_new_GB_row(r))
996 {
997 insert_gb_element(mat->rows[r]);
998 }
999 }
1000 mtbb::tick_count t1 = mtbb::tick_count::now();
1001 mInsertGBTime += (t1-t0).seconds();
1002}
coefficient_matrix * mat
Definition f4.hpp:186
bool is_new_GB_row(int row) const
Definition f4.cpp:603
double mInsertGBTime
Definition f4.hpp:201
void insert_gb_element(row_elem &r)
Definition f4.cpp:899
double seconds(DurationType time_diff)
Definition timing.hpp:59

References insert_gb_element(), is_new_GB_row(), mat, mInsertGBTime, and seconds().

Referenced by do_spairs().