We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9772ef5 commit e6c0089Copy full SHA for e6c0089
src/SimpleTableaux.jl
@@ -20,7 +20,7 @@ struct Tableau
20
n_vars::Int # number of variables in the LP
21
n_cons::Int # number of constraints in the LP
22
23
- function Tableau(A::Matrix, b::Vector, c::Vector)
+ function Tableau(A::AbstractMatrix, b::Vector, c::Vector)
24
m, n = size(A)
25
if length(b) ≠ m || length(c) ≠ n
26
throw(ArgumentError("Size mismatch"))
@@ -64,4 +64,9 @@ end
64
include("Exact.jl")
65
include("DataFrame.jl")
66
67
+function show(io::IO, T::Tableau)
68
+ df = DataFrame(T)
69
+ return show(io, df)
70
+end
71
+
72
end # module SimpleTableaux
0 commit comments