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

◆ prune_complex()

void MutableComplex::prune_complex ( const size_t nsteps,
const size_t flags )

Definition at line 176 of file mutablecomplex.cpp.

177{
178 // Initialize pruning maps
179 const bool dense = mDifferential[0]->is_dense();
181 for (size_t n = 0; n < mDifferential.size() + 1; ++n)
182 mMorphisms.push_back(MutableMatrix::identity(mRing, mBetti[n], dense));
183 for (size_t n = 0; n < mDifferential.size() && n < nsteps; n++)
184 {
185 if (flags & FLAG_REV_ORDER)
186 prune_matrix(mDifferential.size() - n - 1, flags);
187 else
189 }
190}
std::vector< size_t > mBetti
const size_t flags
const Ring * mRing
void prune_matrix(size_t n, const size_t flags)
static MutableMatrix * identity(const Ring *R, size_t nrows, bool dense)
Definition mat.cpp:69
#define FLAG_TRACE_MORPHISMS
#define FLAG_REV_ORDER

References FLAG_REV_ORDER, FLAG_TRACE_MORPHISMS, flags, MutableMatrix::identity(), mBetti, mRing, and prune_matrix().

Referenced by rawPruneComplex().