Skip to content

Commit

Permalink
simplified printing methods for SchurRing
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud authored and d-torrance committed Aug 7, 2024
1 parent 8bcabc2 commit 6fa451f
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions M2/Macaulay2/packages/SchurRings.m2
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,14 @@ SchurRing.synonym = "Schur ring"
ClassFunction = new Type of HashTable
ClassFunction.synonym = "Class function"

expression SchurRing := S -> new FunctionApplication from { schurRing, (expression last S.baseRings, S.Symbol, S.numgens ) }
undocumented (expression, SchurRing)

toExternalString SchurRing := R -> toString expression R
undocumented (toExternalString, SchurRing),
describe SchurRing := S -> Describe (expression schurRing) (expression last S.baseRings, S.Symbol, S.numgens)
undocumented (describe, SchurRing)

toString SchurRing := R -> (
if hasAttribute(R,ReverseDictionary) then toString getAttribute(R,ReverseDictionary)
else toString expression R)
undocumented (toString, SchurRing)

net SchurRing := R -> (
if hasAttribute(R,ReverseDictionary) then toString getAttribute(R,ReverseDictionary)
else net expression R)
undocumented (net, SchurRing)
expression SchurRing := S -> (
if hasAttribute(S, ReverseDictionary)
then toString getAttribute(S, ReverseDictionary)
else new FunctionApplication from unhold describe S)
undocumented (expression, SchurRing)

rawmonom2partition = (m) -> (
reverse splice apply(rawSparseListFormMonomial m, (x,e) -> e:x)
Expand Down

0 comments on commit 6fa451f

Please sign in to comment.