Skip to content

Commit

Permalink
Add toExternalString(MutableMatrix)
Browse files Browse the repository at this point in the history
We just use the same method as we use for mutable lists and hash
tables.
  • Loading branch information
d-torrance committed Aug 6, 2024
1 parent 05f5c46 commit e82f71d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions M2/Macaulay2/m2/mutablemat.m2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ precision MutableMatrix := precision @@ ring
expression MutableMatrix := m -> MatrixExpression append(applyTable(entries m, expression), symbol MutableMatrix => true)
texMath MutableMatrix := m -> texMath expression m
net MutableMatrix := m -> net expression m
toExternalString MutableMatrix := lookup(toExternalString, MutableHashTable)

map(Ring,RawMutableMatrix) := opts -> (R,m) -> (
new MutableMatrix from {
Expand Down

0 comments on commit e82f71d

Please sign in to comment.