From 9c2a715c1797592a5c4946f279b0caf34fcd835a Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Wed, 25 Mar 2026 16:39:58 +0000 Subject: [PATCH 1/3] doc: don't document Integers as filter This should resolve #1155 --- doc/maxplusmat.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/maxplusmat.xml b/doc/maxplusmat.xml index fa336c359..2e80f7f8b 100644 --- a/doc/maxplusmat.xml +++ b/doc/maxplusmat.xml @@ -20,7 +20,6 @@ - true or false. Every matrix over a semiring in &SEMIGROUPS; is a member of one of these @@ -180,9 +179,10 @@ gap> PeriodNTPMatrix(mat); An integer matrix. - If mat is an integer matrix (i.e. belongs to the category - ) whose inverse (if it exists) is also an - integer matrix, then InverseOp returns the inverse of mat. + If mat is an integer matrix whose inverse (if it exists) is also + an integer matrix (i.e. a matrix whose is ), then + InverseOp returns the inverse of mat.

An integer matrix has an integer matrix inverse if and only if it @@ -206,9 +206,10 @@ true true or false - If mat is an integer matrix (i.e. belongs to the - category ), then IsTorsion returns - true if mat is torsion and false otherwise.

+ If mat is an integer matrix (i.e. a matrix whose is ), then IsTorsion returns true if + mat is torsion and false otherwise.

An integer matrix mat is torsion if and only if there exists an integer n such that mat to the power of n is From 39f8fa2eb8a9a2c80a562c53a742f17cf7f0d61b Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Thu, 26 Mar 2026 12:12:18 +0000 Subject: [PATCH 2/3] maxplusmat: fix doc typo --- doc/maxplusmat.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/maxplusmat.xml b/doc/maxplusmat.xml index 2e80f7f8b..a14d9512a 100644 --- a/doc/maxplusmat.xml +++ b/doc/maxplusmat.xml @@ -239,7 +239,7 @@ false An integer or infinity. - If mat is an integer matrix, then InverseOp returns the + If mat is an integer matrix, then Order returns the order of mat. The order of mat is the smallest integer power of mat equal to the identity. If no such integer exists, the order is equal to infinity. From f51d0d213974f4229d61c27d6a87c642dcea99ef Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 26 Mar 2026 12:15:47 +0000 Subject: [PATCH 3/3] Fix maxplus matrix docs --- doc/maxplusmat.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/maxplusmat.xml b/doc/maxplusmat.xml index a14d9512a..b8a4538e4 100644 --- a/doc/maxplusmat.xml +++ b/doc/maxplusmat.xml @@ -23,7 +23,7 @@ true or false. Every matrix over a semiring in &SEMIGROUPS; is a member of one of these - categories, which are subcategory of . + categories, which are subcategories of .

IsTropicalMatrix is a supercategory of @@ -36,7 +36,7 @@ BookName="ref"/>, the underlying list of lists used to create the matrix can be accessed using , the rows of mat can be accessed using mat[i] where i is between - 1 and the dimension of the matrix, it also possible to loop over + 1 and the dimension of the matrix, it is also possible to loop over the rows of a matrix; for tropical matrices ; for ntp matrices and . @@ -186,7 +186,7 @@ gap> PeriodNTPMatrix(mat);

An integer matrix has an integer matrix inverse if and only if it - has determinant one. + has determinant \pm 1. mat := Matrix(Integers, [[0, 0, -1], > [0, 1, 0],