From e82f71d174886c7106ce9ea3ee32f07fac365bed Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Tue, 6 Aug 2024 15:00:00 -0400 Subject: [PATCH] Add toExternalString(MutableMatrix) We just use the same method as we use for mutable lists and hash tables. --- M2/Macaulay2/m2/mutablemat.m2 | 1 + 1 file changed, 1 insertion(+) diff --git a/M2/Macaulay2/m2/mutablemat.m2 b/M2/Macaulay2/m2/mutablemat.m2 index ab0f0169c57..29fa7404833 100644 --- a/M2/Macaulay2/m2/mutablemat.m2 +++ b/M2/Macaulay2/m2/mutablemat.m2 @@ -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 {