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

◆ rawPruningMorphism()

engine_RawMutableMatrixArray rawPruningMorphism ( MutableComplex * C,
int n,
int f )

Definition at line 248 of file mutablecomplex.cpp.

249{
250 size_t nsteps = static_cast<size_t>(n), flags = static_cast<size_t>(f);
251 // std::min(static_cast<int>(C->mMorphisms.size()),
252 // static_cast<int>(nsteps));
253 VECTOR(MutableMatrix *) M = C->prune_morphisms(nsteps, flags);
254 int N = static_cast<int>(M.size());
255 engine_RawMutableMatrixArray A =
256 getmemarraytype(engine_RawMutableMatrixArray, N);
257 A->len = N;
258 for (int i = 0; i < N; ++i) A->array[i] = M[i];
259 return A;
260}
Abstract base class for mutable matrices over an arbitrary engine Ring, the in-place counterpart of t...
Definition mat.hpp:79
#define getmemarraytype(S, len)
Definition m2-mem.h:142
#define VECTOR(T)
Definition newdelete.hpp:78

References getmemarraytype, and VECTOR.