Skip to content

Commit

Permalink
show for SolveCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
joschmitt committed Mar 6, 2024
1 parent 9352fb8 commit 36c60ea
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions src/Solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@ module Solve

using AbstractAlgebra

import AbstractAlgebra: base_ring, nrows, ncols, matrix, rank, Generic, kernel,
_can_solve_with_solution_fflu, _can_solve_with_solution_interpolation
import AbstractAlgebra:
base_ring,
_can_solve_with_solution_fflu,
_can_solve_with_solution_interpolation,
Generic,
kernel,
matrix,
nrows,
ncols,
PrettyPrinting,
rank

import Base: show

################################################################################
#
Expand Down Expand Up @@ -76,6 +87,20 @@ mutable struct SolveCtx{T, MatT, TranspMatT}
end
end

function Base.show(io::IO, ::MIME"text/plain", C::SolveCtx)
io = PrettyPrinting.pretty(io)
println(io, "Linear solving context object of matrix")
print(io, PrettyPrinting.Indent())
show(io, MIME"text/plain"(), matrix(C))
print(io, PrettyPrinting.Dedent())
end

function Base.show(io::IO, C::SolveCtx)
PrettyPrinting.@show_name(io, C)

print(io, "Linear solving context object")
end

@doc raw"""
solve_init(A::MatElem)
Expand Down

0 comments on commit 36c60ea

Please sign in to comment.