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

◆ make_sparse() [2/2]

const Matrix * Matrix::make_sparse ( const FreeModule * target,
int ncols,
M2_arrayint rows,
M2_arrayint cols,
const engine_RawRingElementArray entries )
static

Definition at line 191 of file matrix.cpp.

197{
198 MatrixConstructor mat(target, ncols);
199 if (!Matrix::make_sparse_vecs(mat, target, ncols, rows, cols, entries))
200 return nullptr; // error message has already been sent
201 mat.compute_column_degrees();
202 return mat.to_matrix();
203}
friend class MatrixConstructor
Definition matrix.hpp:76

References cols(), MatrixConstructor::compute_column_degrees(), FreeModule, make_sparse(), make_sparse_vecs(), Matrix(), MatrixConstructor, rows(), and MatrixConstructor::to_matrix().

Referenced by make_sparse(), make_sparse(), and MatrixConstructor.