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

◆ change_degree()

void FreeModule::change_degree ( int i,
const_monomial deg )

Definition at line 145 of file freemod.cpp.

146{
147 // WARNING: this modifies the degree, and should only be used during
148 // the construction of a free module (or matrix).
149 assert(i >= 0);
150 assert(i < rank());
151 R->degree_monoid()->copy(deg, components[i]);
152}
gc_vector< monomial > components
Definition freemod.hpp:72
const Ring * R
Definition freemod.hpp:75
int rank() const
Definition freemod.hpp:105

References components, R, and rank().

Referenced by MatrixConstructor::compute_column_degree(), and MatrixConstructor::set_column_degree().