Skip to content

Commit 99e1bf1

Browse files
committed
Add missing LinearTransform
1 parent 5c82b5c commit 99e1bf1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/basekernels/piecewisepolynomial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function PiecewisePolynomialKernel(; v::Int=0, maha=nothing, d::Int=-1)
3838
if maha !== nothing
3939
Base.depwarn("keyword argument `maha` is deprecated", :PiecewisePolynomialKernel)
4040
d = size(maha, 1)
41-
return transform(PiecewisePolynomialKernel{v}(d), cholesky(maha).U)
41+
return transform(PiecewisePolynomialKernel{v}(d), LinearTransform(cholesky(maha).U))
4242
else
4343
return PiecewisePolynomialKernel{v}(d)
4444
end

src/deprecated.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TODO: remove tests when removed
2-
@deprecate MahalanobisKernel(; P::AbstractMatrix{<:Real}) transform(SqExponentialKernel(), cholesky(P).U)
2+
@deprecate MahalanobisKernel(; P::AbstractMatrix{<:Real}) transform(SqExponentialKernel(), LinearTransform(cholesky(P).U))
33

44
# TODO: remove keyword argument `maha` when removed
5-
@deprecate PiecewisePolynomialKernel{V}(A::AbstractMatrix{<:Real}) where V transform(PiecewisePolynomialKernel{V}(size(A, 1)), cholesky(A).U)
5+
@deprecate PiecewisePolynomialKernel{V}(A::AbstractMatrix{<:Real}) where V transform(PiecewisePolynomialKernel{V}(size(A, 1)), LinearTransform(cholesky(A).U))

0 commit comments

Comments
 (0)