Skip to content

Commit

Permalink
Show method for pseudo-matrices modified
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 committed Nov 20, 2024
1 parent 5b4309e commit 3fe5f78
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

Check warning on line 219 in src/NumFieldOrd/NfOrd/LinearAlgebra.jl

View check run for this annotation

Codecov / codecov/patch

src/NumFieldOrd/NfOrd/LinearAlgebra.jl#L217-L219

Added lines #L217 - L219 were not covered by tests
for i in 1:nrows(P.matrix)
i == 1 || print(io, "\n")
print(io, "(")
Expand Down

0 comments on commit 3fe5f78

Please sign in to comment.