Skip to content

Commit eff3d92

Browse files
committed
Add missing LinearTransform
1 parent 3264917 commit eff3d92

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
@@ -37,7 +37,7 @@ function PiecewisePolynomialKernel(; v::Int=0, maha=nothing, d::Int=-1)
3737
if maha !== nothing
3838
Base.depwarn("keyword argument `maha` is deprecated", :PiecewisePolynomialKernel)
3939
d = size(maha, 1)
40-
return transform(PiecewisePolynomialKernel{v}(d), cholesky(maha).U)
40+
return transform(PiecewisePolynomialKernel{v}(d), LinearTransform(cholesky(maha).U))
4141
else
4242
return PiecewisePolynomialKernel{v}(d)
4343
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)