Skip to content

Commit

Permalink
Update nn.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ManosPapadakis95 committed Nov 16, 2023
1 parent 470bfd5 commit aa1759e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/nn.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ eps = 0.0, square = FALSE, sorted = FALSE, radius = 0.0, trans = TRUE, leafs = 1
data <- sqrt(data)
points <- sqrt(points)
}
res <- .Call(`_Rnanoflann_nn`, data, points, k, method, search, eps, square, sorted, radius, leafs, p, parallel, cores)
res <- .Call(`_Rnanoflann_nn`, t(data), t(points), k, method, search, eps, square, sorted, radius, leafs, p, parallel, cores)
if(trans){
res$indices <- t(res$indices)
res$distances <- t(res$distances)
Expand Down

0 comments on commit aa1759e

Please sign in to comment.