Skip to content

Commit

Permalink
Revert "Add inbounds to make_rows"
Browse files Browse the repository at this point in the history
This reverts commit acc8fb1.
  • Loading branch information
Sam Anklesaria committed Mar 28, 2024
1 parent acc8fb1 commit c906218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NearestNeighborsModule.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module NearestNeighborsModule
using ..API
using ChainRulesCore
using KernelFunctions, LinearAlgebra, SparseArrays, AbstractGPs

"""
Expand All @@ -20,7 +21,7 @@ function make_B(pts::AbstractVector{T}, k::Int, kern::Kernel) where {T}
end

function make_rows(pts::AbstractVector{T}, k::Int, kern::Kernel) where {T}
@inbounds [make_row(kern, pts[max(1, i-k):i-1], pts[i]) for i in 2:length(pts)]
[make_row(kern, pts[max(1, i-k):i-1], pts[i]) for i in 2:length(pts)]
end

function make_row(kern::Kernel, ns::AbstractVector{T}, p::T) where {T}
Expand Down

0 comments on commit c906218

Please sign in to comment.