@@ -633,29 +633,35 @@ eigen2(A::Hermitian, tol = eps(float(real(one(eltype(A)))))) = eigen2!(copy(A),
633
633
634
634
# First method of each type here is identical to the method defined in
635
635
# LinearAlgebra but is needed for disambiguation
636
+ const _eigencopy_oftype = if VERSION >= v " 1.9"
637
+ LinearAlgebra. eigencopy_oftype
638
+ else
639
+ LinearAlgebra. copy_oftype
640
+ end
641
+
636
642
function LinearAlgebra. eigvals (A:: Hermitian{<:Real} )
637
643
T = typeof (sqrt (zero (eltype (A))))
638
- return eigvals! (LinearAlgebra . copy_oftype (A, T))
644
+ return eigvals! (_eigencopy_oftype (A, T))
639
645
end
640
646
function LinearAlgebra. eigvals (A:: Hermitian{<:Complex} )
641
647
T = typeof (sqrt (zero (eltype (A))))
642
- return eigvals! (LinearAlgebra . copy_oftype (A, T))
648
+ return eigvals! (_eigencopy_oftype (A, T))
643
649
end
644
650
function LinearAlgebra. eigvals (A:: Hermitian )
645
651
T = typeof (sqrt (zero (eltype (A))))
646
- return eigvals! (LinearAlgebra . copy_oftype (A, T))
652
+ return eigvals! (_eigencopy_oftype (A, T))
647
653
end
648
654
function LinearAlgebra. eigen (A:: Hermitian{<:Real} )
649
655
T = typeof (sqrt (zero (eltype (A))))
650
- return eigen! (LinearAlgebra . copy_oftype (A, T))
656
+ return eigen! (_eigencopy_oftype (A, T))
651
657
end
652
658
function LinearAlgebra. eigen (A:: Hermitian{<:Complex} )
653
659
T = typeof (sqrt (zero (eltype (A))))
654
- return eigen! (LinearAlgebra . copy_oftype (A, T))
660
+ return eigen! (_eigencopy_oftype (A, T))
655
661
end
656
662
function LinearAlgebra. eigen (A:: Hermitian )
657
663
T = typeof (sqrt (zero (eltype (A))))
658
- return eigen! (LinearAlgebra . copy_oftype (A, T))
664
+ return eigen! (_eigencopy_oftype (A, T))
659
665
end
660
666
661
667
# Aux (should go somewhere else at some point)
0 commit comments