We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbeea02 commit 016f995Copy full SHA for 016f995
src/LSHBase.jl
@@ -41,6 +41,14 @@ See also: [`SymmetricLSHFunction`](@ref)
41
"""
42
abstract type AsymmetricLSHFunction <: LSHFunction end
43
44
+function Base.show(io::IO, hashfn::LSHFunction)
45
+ args = "n_hashes = $(n_hashes(hashfn))"
46
+ args = args * ", similarity = $(similarity(hashfn))"
47
+ args = args * ", hashtype = $(hashtype(hashfn))"
48
+ msg = "$(typeof(hashfn))($args)"
49
+ print(io, msg)
50
+end
51
+
52
#========================
53
Similarity function API
54
========================#
0 commit comments