Skip to content

Commit b9cb3df

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 4ef3481 commit b9cb3df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/approximations/nystrom.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ function sampleindex(X::AbstractVector, r::Real)
99
return S
1010
end
1111

12-
@deprecate sampleindex(X::AbstractMatrix, r::Real; obsdim::Integer=defaultobs) sampleindex(vec_of_vecs(X; obsdim=obsdim), r) false
12+
@deprecate sampleindex(X::AbstractMatrix, r::Real; obsdim::Integer=defaultobs) sampleindex(
13+
vec_of_vecs(X; obsdim=obsdim), r
14+
) false
1315

1416
function nystrom_sample(k::Kernel, X::AbstractVector, S::Vector{<:Integer})
1517
Xₘ = X[S]
@@ -18,7 +20,9 @@ function nystrom_sample(k::Kernel, X::AbstractVector, S::Vector{<:Integer})
1820
return (C, Cs)
1921
end
2022

21-
@deprecate nystrom_sample(k::Kernel, X::AbstractMatrix, S::Vector{<:Integer}; obsdim::Integer=defaultobs) nystrom_sample(k, vec_of_vecs(X; obsdim=obsdim), S) false
23+
@deprecate nystrom_sample(
24+
k::Kernel, X::AbstractMatrix, S::Vector{<:Integer}; obsdim::Integer=defaultobs
25+
) nystrom_sample(k, vec_of_vecs(X; obsdim=obsdim), S) false
2226

2327
function nystrom_pinv!(Cs::Matrix{T}, tol::T=eps(T) * size(Cs, 1)) where {T<:Real}
2428
# Compute eigendecomposition of sampled component of K

0 commit comments

Comments
 (0)