From 3fe5f7869dbc7f6f5270bb19c623ea086b65ab03 Mon Sep 17 00:00:00 2001 From: Tobias Braun Date: Wed, 20 Nov 2024 19:32:21 +0100 Subject: [PATCH] Show method for pseudo-matrices modified 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, "(")