Skip to content

Commit

Permalink
Show method for pseudo-matrices modified (#1689)
Browse files Browse the repository at this point in the history
Added an output for pseudo-matrices with zero rows that
  • Loading branch information
SirToby25 authored Nov 20, 2024
1 parent 5b4309e commit b9aaec0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NumFieldOrd/NfOrd/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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, "(")
Expand Down

0 comments on commit b9aaec0

Please sign in to comment.