Skip to content

Make JVPCache an immutable struct#215

Closed
gdalle wants to merge 2 commits into
JuliaDiff:masterfrom
gdalle:gd/jvp
Closed

Make JVPCache an immutable struct#215
gdalle wants to merge 2 commits into
JuliaDiff:masterfrom
gdalle:gd/jvp

Conversation

@gdalle
Copy link
Copy Markdown
Member

@gdalle gdalle commented May 26, 2026

From what I see in src/jvp.jl, there is no operation of the form cache.x1 = something, only cache.x1 .= something, which doesn't require a mutable struct. Making it immutable would allow alloc-free static array support in JuliaDiff/DifferentiationInterface.jl#1019

@gdalle gdalle requested a review from oscardssmith May 26, 2026 07:36
@gdalle gdalle closed this May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant