Skip to content

Make JVPCache immutable#216

Merged
ChrisRackauckas merged 1 commit into
JuliaDiff:masterfrom
gdalle:gd/jvp2
May 26, 2026
Merged

Make JVPCache immutable#216
ChrisRackauckas merged 1 commit into
JuliaDiff:masterfrom
gdalle:gd/jvp2

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

@ChrisRackauckas ChrisRackauckas merged commit 34b9857 into JuliaDiff:master May 26, 2026
6 checks passed
@gdalle gdalle deleted the gd/jvp2 branch May 26, 2026 08:09
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.

2 participants