H = infrastructureCacheInfo()clearInfrastructureCaches()Haff = affineStructureCacheInfo()clearAffineStructureCache()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.
|
|
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.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:12153:0.