Skip to content

Commit

Permalink
Define method for the abstract SymmetricLSHFunction type (now that th…
Browse files Browse the repository at this point in the history
…is is valid Julia syntax, see JuliaLang/julia#31916).
  • Loading branch information
kernelmethod committed Nov 27, 2019
1 parent d793ea9 commit 5534b18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/LSHBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ redraw(h::LSHFunction) =
h |> deepcopy |> redraw!

# Symmetric LSH families
function (:: SymmetricLSHFunction)(x) end
index_hash(h :: SymmetricLSHFunction, x) = h(x)
query_hash(h :: SymmetricLSHFunction, x) = h(x)

Expand Down

0 comments on commit 5534b18

Please sign in to comment.