Skip to content

Commit e6c0089

Browse files
committed
Allow abstract matrix for A
1 parent 9772ef5 commit e6c0089

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/SimpleTableaux.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct Tableau
2020
n_vars::Int # number of variables in the LP
2121
n_cons::Int # number of constraints in the LP
2222

23-
function Tableau(A::Matrix, b::Vector, c::Vector)
23+
function Tableau(A::AbstractMatrix, b::Vector, c::Vector)
2424
m, n = size(A)
2525
if length(b) m || length(c) n
2626
throw(ArgumentError("Size mismatch"))
@@ -64,4 +64,9 @@ end
6464
include("Exact.jl")
6565
include("DataFrame.jl")
6666

67+
function show(io::IO, T::Tableau)
68+
df = DataFrame(T)
69+
return show(io, df)
70+
end
71+
6772
end # module SimpleTableaux

0 commit comments

Comments
 (0)