Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
fb8773a
Refuse a device sparse coupling with no conversion to CSR
claude Nov 30, 2026
7d9bde2
Link the published benchmark grid from the performance page
claude Nov 30, 2026
9ff53c8
Drop recorded times of test items that no longer exist
claude Nov 30, 2026
a800a76
Shorten the README motivation bullets to one sentence each
claude Nov 30, 2026
26d6b08
Test the CSC conversion only where JLArrays has it, and reword a READ…
claude Nov 30, 2026
88e3f22
Add the pure step and take its local derivative in the rule
claude Nov 30, 2026
9a3925d
Test the pure step and drop the tests of the rebuild fallback
claude Nov 30, 2026
c8eb19e
Document the pure step and the two ways a component takes the rule
claude Nov 30, 2026
18677ed
Keep the step pullbacks that pay and drop the rest
claude Nov 30, 2026
a489537
List the call-checked scenario among those that take plain AD
claude Nov 30, 2026
08af340
Write the 32-entry tuple regression's modifier as a pure step
claude Dec 1, 2026
47b1fd9
Fail a step that reads its parameters from the modifier, and reverse …
claude Dec 1, 2026
f7ddae6
Pass the static analysis of the pure step
claude Dec 1, 2026
6189dcd
Merge remote-tracking branch 'origin/main' into claude/amazing-shanno…
claude Dec 1, 2026
74bc387
Merge branch 'canonical-step-stage1' into claude/amazing-shannon-6nrow8
claude Dec 1, 2026
71c6202
Say why a recurrence does not take the rule, and port the device fixt…
claude Dec 1, 2026
28b8a37
Keep the coupled primal at speed and the dual pass inferred on Julia …
claude Dec 1, 2026
2f72bde
Drop unreachable dual-pass methods and test a group's starting state
claude Dec 1, 2026
ba05903
Merge branch 'canonical-step-stage1' into claude/amazing-shannon-6nrow8
claude Dec 1, 2026
2c8be20
Say where the forward-mode pass of a step gives NaN
claude Dec 1, 2026
0a9026f
Take record markers, a recurrence without a kernel and an unbounded s…
claude Dec 1, 2026
cd6f3f4
Port the tests and fixtures to record markers
claude Dec 1, 2026
7af7746
Document record markers, a recurrence without a kernel and an unbound…
claude Dec 1, 2026
e376ce6
Read the markers from types in the remaining tests
claude Dec 1, 2026
8f55983
Give Resume its maths and keep the record prose one sentence a line
claude Dec 1, 2026
1c30972
Hold the barrier test's constants as constants
claude Dec 1, 2026
fe86466
Drop the host-copy init pullback a pure step no longer takes
claude Dec 1, 2026
c779d35
Test that a step whose type refuses changed parameters passes its check
claude Dec 1, 2026
9b1acdd
Merge branch 'canonical-step-stage1' into claude/amazing-shannon-6nrow8
claude Dec 1, 2026
4d204b9
Merge branch 'typed-record' into claude/amazing-shannon-6nrow8
claude Dec 1, 2026
fd4c722
Say groups, not strata, in the README's opening bullets
claude Dec 1, 2026
1305f39
Drop the notes on tracked numbers and recorded tapes
claude Dec 1, 2026
21fb0bb
Split an overlong sentence on record markers
claude Dec 1, 2026
ffb3917
Carry a share's bound in its type
claude Dec 1, 2026
f9291ab
Add Reactant registry rows for the named-trace record scenario (#927)
seabbs-bot Dec 1, 2026
4d5b1f1
Check CR inside Wren models (#917)
seabbs-bot Dec 1, 2026
1f19e43
Dispatch a share flow on any Share
claude Dec 1, 2026
66aead3
Remove the news file: release notes live on the release
claude Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 0 additions & 122 deletions NEWS.md

This file was deleted.

3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ projects = ["test", "docs"]
[deps]
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Interfaces = "85a1e053-f937-4924-92a5-1367d23b7b87"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Expand All @@ -23,7 +24,6 @@ Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
EnzymeTestUtils = "12d8515a-0907-448a-8884-5fe00fdf1c5a"
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
GPUArrays = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
Expand All @@ -37,7 +37,6 @@ ComposableRecurrencesDistributionsExt = "Distributions"
ComposableRecurrencesEnzymeExt = "Enzyme"
ComposableRecurrencesEnzymeTestUtilsExt = ["ADTypes", "Enzyme", "EnzymeTestUtils"]
ComposableRecurrencesFFTWExt = "FFTW"
ComposableRecurrencesForwardDiffExt = "ForwardDiff"
ComposableRecurrencesFunctorsExt = "Functors"
ComposableRecurrencesGPUArraysExt = ["GPUArrays", "KernelAbstractions"]
ComposableRecurrencesKernelAbstractionsExt = ["Adapt", "KernelAbstractions"]
Expand Down
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ Fast, [composable](https://composablerecurrences.epiaware.org/stable/explanation

## Why ComposableRecurrences?

- A recurrence computes each value from its own past values, such as infections from earlier infections.
A convolution weights the past values of another series, such as reported cases from earlier infections.
- Both are usually hand-written loops, rewritten for each model.
`Recurrence` and `Convolution` express them as two operators, for one series or for many strata, such as towns, run side by side.
- Mixing between strata, finite pools and caps are added by passing couplings and modifiers to an operator.
- Operators run on CPU threads and on [GPU arrays](https://composablerecurrences.epiaware.org/stable/explanation/adjoints-and-backends/#gpu-arrays) through KernelAbstractions.jl.
On Julia 1.12 and later, a forward run compiles into a [trimmed executable](https://composablerecurrences.epiaware.org/stable/developer/extending-performance/#trimming) with `juliac`.
- The aim is to be as fast as hand-written code with hand-written gradients.
Against a hand-written loop of each documented model, the package's Mooncake and Enzyme gradients are a median 4.1× and 2.4× faster than the same backend on the loop, comparing minimum times.
The forward run and ForwardDiff gradient run at a median 1.2× and 1.1× the loop's speed, and are slower on several models.
These figures are from revision 48f2396; see the [benchmarks](https://composablerecurrences.epiaware.org/stable/benchmarks/over-time/#benchmarks-hand-written) for each model and the slower cases.
- Epidemic models are built from recurrences, where each value depends on earlier values, and convolutions, where a delay spreads one series into another.
Comment thread
seabbs-bot marked this conversation as resolved.
Resolved
- These are usually hand-written loops, rewritten and re-debugged for each new model.
- Here they are building blocks that combine, so adding groups such as ages or regions, mixing between them, a finite population or a time-varying delay does not mean starting again.
- The aim is the speed of hand-written loops and hand-written gradients, without having to write them.
- The same model code runs on CPU and GPU arrays, and under forward- and reverse-mode automatic differentiation.

## Getting started

Expand Down
Loading
Loading