Skip to content

Commit aa03466

Browse files
committed
fix 1x1 sqrt for block matrices
1 parent 4229c51 commit aa03466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqrtm.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@inline sqrtm(A::StaticMatrix) = _sqrtm(Size(A),A)
22

33
@inline function _sqrtm(::Size{(1,1)}, A::SA) where {SA<:StaticArray}
4-
s = sqrt(A[1,1])
4+
s = sqrtm(A[1,1])
55
similar_type(SA,typeof(s))(s)
66
end
77

0 commit comments

Comments
 (0)