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

◆ makeMutableMatrix()

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

Reimplemented from Ring.

Definition at line 44 of file mat.cpp.

47{
48 if (dense)
49 return new MutableMat<DMat<M2::ARingZZp> >(this, get_ARing(), nrows, ncols);
50 else
51 return new MutableMat<SMat<M2::ARingZZp> >(this, get_ARing(), nrows, ncols);
52}
M2::ARingZZp * get_ARing() const
Definition ZZp.hpp:94

References get_ARing().