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

◆ MatrixConstructor() [3/3]

MatrixConstructor::MatrixConstructor ( const FreeModule * target,
const FreeModule * source,
const_monomial deg = nullptr )

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

26 : R(target->get_ring()), rows(target), cols(source), cols_frozen(true)
27{
28 entries.reserve(source->rank());
29 for (int i = 0; i < source->rank(); i++) entries.push_back(nullptr);
30
31 deg = (deg0 == nullptr ? R->degree_monoid()->make_one()
32 : R->degree_monoid()->make_new(deg0));
33}
const Ring * get_ring() const
Definition freemod.hpp:102
int rank() const
Definition freemod.hpp:105
const Ring * R
const FreeModule * rows
const FreeModule * cols
const_monomial deg

References cols, cols_frozen, deg, R, FreeModule::rank(), and rows.