Skip to content

Commit 572fb86

Browse files
committed
Change indexing
1 parent 614c703 commit 572fb86

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
@@ -13,7 +13,7 @@ function nystrom_sample(k::Kernel, X::AbstractMatrix, S::Vector{<:Integer}; obsd
1313
obsdim [1, 2] || throw(ArgumentError("`obsdim` should be 1 or 2 (see docs of kernelmatrix))"))
1414
Xₘ = obsdim == 1 ? X[S, :] : X[:, S]
1515
C = k(Xₘ, X; obsdim=obsdim)
16-
Cs = getindex(C, :, S)
16+
Cs = C[:, S]
1717
return (C, Cs)
1818
end
1919

0 commit comments

Comments
 (0)