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

◆ makeMutableMatrix()

MutableMatrix * RingZZ::makeMutableMatrix ( size_t nrows,
size_t ncols,
bool dense ) const
virtual

Reimplemented from Ring.

Definition at line 32 of file mat.cpp.

35{
36 if (dense)
37 return new MutableMat<DMat<M2::ARingZZGMP> >(
38 this, get_ARing(), nrows, ncols);
39 else
40 return new MutableMat<SMat<M2::ARingZZGMP> >(
41 this, get_ARing(), nrows, ncols);
42}
M2::ARingZZGMP * get_ARing() const
Definition ZZ.hpp:98

References get_ARing().