Skip to content

Commit b727831

Browse files
sharanrydevmotion
andauthored
Update src/kernels/maha.jl
Co-Authored-By: David Widmann <[email protected]>
1 parent b1bd1d3 commit b727831

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 MahaKernel{T<:Real} <: BaseKernel
1212
P::AbstractMatrix{T}
1313
kappa::Function
1414
function MahaKernel(P::AbstractMatrix{T}, kappa::Function) where {T<:Real}
15-
@assert size(P)[1] == size(P)[2] "P should be a square matrix"
15+
LinearAlgebra.checksquare(P)
1616
new{T}(P, kappa)
1717
end
1818
end

0 commit comments

Comments
 (0)