Macaulay2 » Documentation
Packages » KacMoody » Root data and representations » Saved results and repeated calculations
next | previous | forward | backward | up | index | toc

Saved results and repeated calculations -- Inspect and clear results saved during a Macaulay2 session

During a Macaulay2 session, the package saves results for affine invariants, Cartan matrices, weight bases, Kazhdan–Lusztig polynomials, Verma partitions, and crystal calculations. Repeated calculations with the same matrix or datum can use these results. Most results belong to the particular matrix, datum, or crystal that requested them. The package need not keep these objects alive when a calculation has finished.

i1 : H = infrastructureCacheInfo();
i2 : sort keys H

o2 = {affineStructure, characterParents, crystalData, datumMatrices,
     ------------------------------------------------------------------------
     kazhdanLusztigData, note, scope, vermaPartitions, weightNotation}

o2 : List

The affine entry, also returned by affineStructureCacheInfo, counts affine results currently held for sharing between equal Cartan matrices. The other numerical entries count results computed since the last clearing, not the number still in memory. For example, computing the same Verma partition table on two independent matrices can count twice. The characterParents entry is always zero: character arithmetic compares the two root data directly. rootSnapshotCacheInfo and representationCacheInfo count saved root-multiplicity and finite representation results.

clearInfrastructureCaches clears the shared affine table, resets the counts, and invalidates results stored on individual objects. Each such object discards its old results the next time its table is used. Existing CartanDatum, RootDatum, FormalCharacter, and Crystal objects remain valid; later calculations compute any needed results again. clearAffineStructureCache clears only the affine results.

See also


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:12153:0.