Skip to content

Commit

Permalink
add show method to randombooleanmatrices
Browse files Browse the repository at this point in the history
  • Loading branch information
mkborregaard committed Jan 7, 2019
1 parent 29dca84 commit 4d2eeea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RandomBooleanMatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ struct MatrixGenerator{R<:AbstractRNG}
rng::R
end

show(io::IO, m::MatrixGenerator) = println(io, "Boolean MatrixGenerator with size $(size(m.m)) and $(nnz(m.m)) occurrences")

"""
matrixgenerator(m [,rng]; method = curveball)
Expand Down

0 comments on commit 4d2eeea

Please sign in to comment.