Skip to content

Commit

Permalink
Update eigenvalues.jl
Browse files Browse the repository at this point in the history
Remove unused type T
  • Loading branch information
BTV25 authored Jun 11, 2024
1 parent 62acd97 commit 0f9e6aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/eigenvalues.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Make eigenvalue problems AD compatible with ForwardDiff and ReverseDiff
implicit_eigval(A, B, eigsolve) = eigsolve(A, B)[1] # If no AD, just solve normally. Returns only eigenvalue.

# forward cases
implicit_eigval(A::AbstractArray{<:ForwardDiff.Dual{T}}, B::AbstractArray{<:ForwardDiff.Dual{T}}, eigsolve) where {T} = eigval_fwd(A, B, eigsolve)
implicit_eigval(A, B::AbstractArray{<:ForwardDiff.Dual{T}}, eigsolve) where {T} = eigval_fwd(A, B, eigsolve)
implicit_eigval(A::AbstractArray{<:ForwardDiff.Dual{T}}, B, eigsolve) where {T} = eigval_fwd(A, B, eigsolve)
implicit_eigval(A::AbstractArray{<:ForwardDiff.Dual}, B::AbstractArray{<:ForwardDiff.Dual}, eigsolve) = eigval_fwd(A, B, eigsolve)
implicit_eigval(A, B::AbstractArray{<:ForwardDiff.Dual}, eigsolve) = eigval_fwd(A, B, eigsolve)
implicit_eigval(A::AbstractArray{<:ForwardDiff.Dual}, B, eigsolve) = eigval_fwd(A, B, eigsolve)

# reverse cases
implicit_eigval(A::Union{ReverseDiff.TrackedArray, AbstractArray{<:ReverseDiff.TrackedReal}}, B::Union{ReverseDiff.TrackedArray, AbstractArray{<:ReverseDiff.TrackedReal}}, eigsolve) = eigval_rev(A, B, eigsolve)
Expand Down

0 comments on commit 0f9e6aa

Please sign in to comment.