From b9aaec03cd9de719e2348cf568bdac36f6fdc84a Mon Sep 17 00:00:00 2001 From: Tobias Braun Date: Wed, 20 Nov 2024 22:42:20 +0100 Subject: [PATCH] Show method for pseudo-matrices modified (#1689) Added an output for pseudo-matrices with zero rows that --- src/NumFieldOrd/NfOrd/LinearAlgebra.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NumFieldOrd/NfOrd/LinearAlgebra.jl b/src/NumFieldOrd/NfOrd/LinearAlgebra.jl index e9a595bed7..f313ff19a7 100644 --- a/src/NumFieldOrd/NfOrd/LinearAlgebra.jl +++ b/src/NumFieldOrd/NfOrd/LinearAlgebra.jl @@ -214,7 +214,9 @@ end function show(io::IO, P::PMat) compact = get(io, :compact, false) - if compact + if nrows(P.matrix) == 0 + print(io, "empty $(0) x $(ncols(P)) pseudo-matrix") + elseif compact for i in 1:nrows(P.matrix) i == 1 || print(io, "\n") print(io, "(")