Skip to content

Commit 77151c0

Browse files
committed
added convert to det of 1x1 Array
1 parent e4dedf3 commit 77151c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/det.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ end
66

77
@inline logdet(A::StaticMatrix) = log(det(A))
88

9-
@inline _det(::Size{(1,1)}, A::StaticMatrix,::Type) = @inbounds return A[1]
9+
@inline _det(::Size{(1,1)}, A::StaticMatrix,S::Type) = @inbounds return convert(S,A[1])
1010

1111
@inline function _det(::Size{(2,2)}, A::StaticMatrix, S::Type)
1212
A = similar_type(A,S)(A)

0 commit comments

Comments
 (0)