You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -492,6 +498,11 @@ function symtriUpper!(AS::StridedMatrix{T},
492
498
u =Vector{T}(undef, size(AS, 1))) where T
493
499
n = LinearAlgebra.checksquare(AS)
494
500
501
+
# We ignore any non-real components of the diagonal
502
+
@inboundsfor i in1:n
503
+
AS[i,i] =real(AS[i,i])
504
+
end
505
+
495
506
@inboundsfor k =1:(n -2+!(T<:Real))
496
507
# This is a bit convoluted method to get the conjugated vector but conjugation is required for correctness of arrays of quaternions. Eventually, it should be sufficient to write vec(x') but it currently (July 10, 2018) hits a bug in LinearAlgebra
0 commit comments