Skip to content

Commit 5c7295e

Browse files
committed
Make MahalanobisKernel constructor optimal
1 parent e11a016 commit 5c7295e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kernels/maha.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct MahalanobisKernel{T<:Real, A<:AbstractMatrix{T}} <: BaseKernel
1212
P::A
1313
function MahalanobisKernel(P::AbstractMatrix{T}) where {T<:Real}
1414
LinearAlgebra.checksquare(P)
15-
new{T,AbstractMatrix{T}}(P)
15+
new{T,typeof(P)}(P)
1616
end
1717
end
1818

0 commit comments

Comments
 (0)