Skip to content

Commit

Permalink
fixed some bugs on permindex.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
sadit committed Jan 9, 2023
1 parent 8872d86 commit a60112b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SimilaritySearch"
uuid = "053f045d-5466-53fd-b400-a066f88fe02a"
authors = ["Eric S. Tellez <donsadit@gmail.com>"]
version = "0.9.11"
version = "0.9.12"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
8 changes: 4 additions & 4 deletions src/permindex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ end
PermutedSearchIndex(; index, π, π′=invperm(π)) = PermutedSearchIndex(index, π, π′)

@inline getpools(p::PermutedSearchIndex) = getpools(p.index)
@inline database(p::PermutedSearchIndex) = SubDatabase(database(p), p.π′)
@inline database(p::PermutedSearchIndex, i) = database(p, π′[i])
@inline distance(p::PermutedSearchIndex) = p.dist
@inline Base.length(p::PermutedSearchIndex) = length(p.cov)
@inline database(p::PermutedSearchIndex) = SubDatabase(database(p.index), p.π′)
@inline database(p::PermutedSearchIndex, i) = database(p.index, p.π′[i])
@inline distance(p::PermutedSearchIndex) = distance(p.index)
@inline Base.length(p::PermutedSearchIndex) = length(p.index)

function search(p::PermutedSearchIndex, q, res::KnnResult; pools=getpools(index))
out = search(p.index, q, res; pools)
Expand Down

2 comments on commit a60112b

@sadit
Copy link
Owner Author

@sadit sadit commented on a60112b Jan 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/75417

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.9.12 -m "<description of version>" a60112b28e395150f13b5895a966b14b00f44a19
git push origin v0.9.12

Please sign in to comment.