Skip to content

Commit

Permalink
rename HasShockDeriv to HasParamFDerivWithJumps
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Jun 24, 2024
1 parent 43893fc commit d247282
Show file tree
Hide file tree
Showing 4 changed files with 794 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SciLean/Core/FunctionTransformations/RevFDeriv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def revFDeriv
(f : X → Y) (x : X) : Y×(Y→X) :=
(f x, adjoint K (fun dx => fderiv K f x dx))

noncomputable
def fgradient
{K : Type _} [RCLike K]
{X : Type _} [NormedAddCommGroup X] [AdjointSpace K X] [CompleteSpace X]
(f : X → K) (x : X) : X := (revFDeriv K f x).2 1

namespace revFDeriv

Expand Down
Loading

0 comments on commit d247282

Please sign in to comment.