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

◆ MatrixConstructor() [2/3]

MatrixConstructor::MatrixConstructor ( const FreeModule * target,
int ncols )

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

13 : R(target->get_ring()), rows(target), cols(nullptr), cols_frozen(false), deg(nullptr)
14{
15 cols = R->make_FreeModule(ncols);
16
17 entries.reserve(ncols);
18 for (int i = 0; i < ncols; i++) entries.push_back(nullptr);
19
20 deg = R->degree_monoid()->make_one();
21}
const Ring * get_ring() const
Definition freemod.hpp:102
const Ring * R
const FreeModule * rows
const FreeModule * cols
const_monomial deg

References cols, cols_frozen, deg, R, and rows.