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
}
FreeModule::get_ring
const Ring * get_ring() const
Definition
freemod.hpp:102
MatrixConstructor::R
const Ring * R
Definition
matrix-con.hpp:61
MatrixConstructor::rows
const FreeModule * rows
Definition
matrix-con.hpp:63
MatrixConstructor::cols
const FreeModule * cols
Definition
matrix-con.hpp:64
MatrixConstructor::cols_frozen
bool cols_frozen
Definition
matrix-con.hpp:68
MatrixConstructor::deg
const_monomial deg
Definition
matrix-con.hpp:73
References
cols
,
cols_frozen
,
deg
,
R
, and
rows
.
MatrixConstructor
Generated on
for Macaulay2 Engine by
1.15.0