Skip to content

Commit c34a4ba

Browse files
st--theogf
andauthored
Update src/approximations/nystrom.jl
Co-authored-by: Théo Galy-Fajou <[email protected]>
1 parent 41da4e6 commit c34a4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/approximations/nystrom.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414
) false
1515

1616
function nystrom_sample(k::Kernel, X::AbstractVector, S::AbstractVector{<:Integer})
17-
Xₘ = X[S]
17+
Xₘ = @view X[S]
1818
C = kernelmatrix(k, Xₘ, X)
1919
Cs = C[:, S]
2020
return (C, Cs)

0 commit comments

Comments
 (0)