From 3d3cf0534cb4a2c619e6f2a8620eb47c895554a0 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Sat, 10 Aug 2024 07:57:24 +0000 Subject: [PATCH] disambiguate Float16 eigen (#138) --- src/eigen.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eigen.jl b/src/eigen.jl index 60cdefe..767b479 100644 --- a/src/eigen.jl +++ b/src/eigen.jl @@ -9,7 +9,8 @@ # The methods aren't defined for general Tridiagonal or Hermitian, as the # ordering of eigenvectors needs fixing for MT in (:(SymTridiagonal{<:Union{Real,Complex}, <:AbstractFillVector}), - :(Symmetric{T, <:Tridiagonal{T, <:AbstractFillVector{T}}} where {T<:Union{Real,Complex}}) + :(Symmetric{T, <:Tridiagonal{T, <:AbstractFillVector{T}}} where {T<:Union{Real,Complex}}), + :(Symmetric{Float16, <:Tridiagonal{Float16, <:AbstractFillVector{Float16}}}), ) @eval function eigvals(A::$MT) n = size(A,1) @@ -23,6 +24,7 @@ end for MT in (:(SymTridiagonal{<:Union{Real,Complex}, <:AbstractFillVector}), :(Symmetric{T, <:Tridiagonal{T, <:AbstractFillVector{T}}} where {T<:Union{Real,Complex}}), + :(Symmetric{Float16, <:Tridiagonal{Float16, <:AbstractFillVector{Float16}}}), ) @eval begin