From 4d2eeeaba66e9858051aa8d28531653dbab07f69 Mon Sep 17 00:00:00 2001 From: Michael Krabbe Borregaard Date: Mon, 7 Jan 2019 14:04:18 +0100 Subject: [PATCH] add show method to randombooleanmatrices --- src/RandomBooleanMatrices.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/RandomBooleanMatrices.jl b/src/RandomBooleanMatrices.jl index 5704e2e..64e13d1 100644 --- a/src/RandomBooleanMatrices.jl +++ b/src/RandomBooleanMatrices.jl @@ -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)