32{
33
34 size_t ncols = A->NumRows();
35 size_t nrows = A->NumCols();
37
38 mpz_t a;
39 mpz_init(a);
40
41 for (size_t i = 0; i < ncols; i++)
42 for (size_t j = 0; j < nrows; j++)
43 {
44 if ((*A)(i + 1, j + 1) != 0)
45 {
48 }
49 }
50 mpz_clear(a);
51 return B;
52}
static MutableMatrix * zero_matrix(const Ring *R, size_t nrows, size_t ncols, bool dense)
virtual bool set_entry(size_t r, size_t c, const ring_elem a)=0
Abstract base class for mutable matrices over an arbitrary engine Ring, the in-place counterpart of t...
void mat_ZZ_get_entry(const NTL::mat_ZZ *A, long i, long j, mpz_t result)