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

◆ compute_column_degree()

void MatrixConstructor::compute_column_degree ( int i)
private

Definition at line 79 of file matrix-con.cpp.

80{
81 if (cols_frozen)
82 {
83 INTERNAL_ERROR("trying to append to an immutable free module.");
84 }
85 monomial d = R->degree_monoid()->make_one();
86 const vec v = entries[i];
87 if (v != nullptr) R->vec_multi_degree(rows, v, d);
88 FreeModule *mutable_cols = const_cast<FreeModule *>(cols);
89 mutable_cols->change_degree(i, d);
90 R->degree_monoid()->remove(d);
91}
void change_degree(int i, const_monomial deg)
Definition freemod.cpp:145
const Ring * R
const FreeModule * rows
const FreeModule * cols
void INTERNAL_ERROR(const char *s,...)
Definition error.c:36
#define monomial
Definition gb-toric.cpp:11

References FreeModule::change_degree(), cols, cols_frozen, INTERNAL_ERROR(), monomial, R, and rows.

Referenced by compute_column_degrees().