From 0d535b49f129fc5b401cf478b9aad0ee9557d764 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Tue, 26 May 2026 09:39:10 +0200 Subject: [PATCH] Make JVPCache immutable --- Project.toml | 2 +- src/jvp.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index ff8e51c..d6b8384 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "FiniteDiff" uuid = "6a86dc24-6348-571c-b903-95158fe2bd41" -version = "2.31.0" +version = "2.31.1" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/jvp.jl b/src/jvp.jl index fa940aa..3db5eb9 100644 --- a/src/jvp.jl +++ b/src/jvp.jl @@ -11,7 +11,7 @@ and `v` is a vector. - `x1::X1`: Temporary array for perturbed input values - `fx1::FX1`: Temporary array for function evaluations """ -mutable struct JVPCache{X1, FX1, FDType} +struct JVPCache{X1, FX1, FDType} x1::X1 fx1::FX1 end