From 0f9e6aa07723004e99e62f9057c26e9aee427165 Mon Sep 17 00:00:00 2001 From: Benjamin Varela <70768698+BTV25@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:15:23 -0600 Subject: [PATCH 1/3] Update eigenvalues.jl Remove unused type T --- src/eigenvalues.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eigenvalues.jl b/src/eigenvalues.jl index a0d70b5..99fe271 100644 --- a/src/eigenvalues.jl +++ b/src/eigenvalues.jl @@ -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) From 2d39726ce02d17bd868445c62d992fb6a2c3d571 Mon Sep 17 00:00:00 2001 From: Benjamin Varela <70768698+BTV25@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:26:50 -0600 Subject: [PATCH 2/3] Update reference.md --- docs/src/reference.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/src/reference.md b/docs/src/reference.md index edec428..e37543e 100644 --- a/docs/src/reference.md +++ b/docs/src/reference.md @@ -10,4 +10,10 @@ explicit_unsteady_cache implicit_unsteady implicit_unsteady_cache provide_rule -``` \ No newline at end of file +drdy_forward +vjp +unpack_dual +pack_dual +linear_solve +jvp +``` From 31f6c3acec5992d9ee4ec3bdd318ce95597acbf2 Mon Sep 17 00:00:00 2001 From: Benjamin Varela <70768698+BTV25@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:47:29 -0600 Subject: [PATCH 3/3] Update reference.md fix reference.md --- docs/src/reference.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/src/reference.md b/docs/src/reference.md index e37543e..01ce08b 100644 --- a/docs/src/reference.md +++ b/docs/src/reference.md @@ -10,10 +10,4 @@ explicit_unsteady_cache implicit_unsteady implicit_unsteady_cache provide_rule -drdy_forward -vjp -unpack_dual -pack_dual -linear_solve -jvp ```