Skip to content

Fix Float32/BigFloat priority-table setup (issue #674) - #716

Closed
ChrisRackauckas-Claude wants to merge 2 commits into
masterfrom
agent/674-float32-priority-table
Closed

ChrisRackauckas-Claude wants to merge 2 commits into
masterfrom
agent/674-float32-priority-table

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🚧 UNREVIEWED — awaiting review by @ChrisRackauckas. Filed by an AI agent running as @ChrisRackauckas; Chris has not seen this.
Harness: Muse CLI Code · Model: muse-ember-1.0
Conversation: local job 674-muse (no session URL)

DirectCR, RSSACR and CCNRM now work with Float32 and BigFloat rates and tspans. The T(2)^minexponent change keeps the priority-table minimum rate in the aggregator's number type instead of Float64, the PriorityTable constructor is clamped to its three base groups so a minimum rate below eps(T) can no longer collapse the table to zero groups with zero maxpriority (which sent padtable! into an infinite 0 * 2 loop), and CCNRM's time-table update converts times to the table's type before binning. Float64 behavior is unchanged (the 2.0 literal is already Float64, the clamp is inactive, and the conversions are identity), which the unchanged Float64 suite confirms.

Verification

Issue reproducer (Float32 rates and tspan) on master: Direct: ok, DirectCR: MethodError: Cannot convert PriorityGroup{Float64,...}, RSSACR: MethodError (same), CCNRM: MethodError: no method matching (::TimeGrouper{Float32})(::Float64). With only the T(2) change it hung (interrupted after 300 s inside DirectCRJumpAggregation construction). With the full fix: all four print ok eltype(t)=Float32.

  • New tests in test/table_test.jl (Float32 PriorityTable insert/update/sample/grows, aggregator-style construction, PriorityTimeTable Float64-time updates, full Float32 solves for Direct/DirectCR/RSSACR/CCNRM, BigFloat-tspan solves for DirectCR/RSSACR/CCNRM) on pre-fix sources: error (MethodError at the PriorityTimeTable update) and hang (aggregator-style construction); on fixed sources: Test Summary: | Pass Total | table | 56 56.
  • GROUP=InterfaceI julia --project=. -e 'using Pkg; Pkg.test()': Testing JumpProcesses tests passed (Composition-Rejection Table Tests 56/56, SSA Aggregator Smoke 452/452, Variable Rate 314/314).
  • GROUP=QA julia --project=. -e 'using Pkg; Pkg.test()': QA Tests | 20 20, tests passed.
  • JuliaFormatter (sciml style) on the five changed files: clean. typos on the changed files: no findings.
  • Spatial DirectCRDirect with Float32 hopping constants and tspan (both grid kinds): solves complete, eltype(t)=Float32, mass conserved.

Not verified

  • The InterfaceII group (spatial suite runs in CI) and the GPU groups; the docs build (no docstring or docs changes).

Reviewer pushback

  • The >=3 base-group clamp vs. reworking priortogid's eps threshold: I kept the threshold (rates below eps are sampled exactly in group 1) and only guaranteed the constructor's documented minimum structure.
  • convert(T, oldtime/newtime) in PriorityTimeTable update: for Float64 callers this is an identity op; for Float32 callers it bins by the stored (converted) value rather than the unconverted widened value.

Closes #674

Risk assessment

  • Risk: low (L6: old behavior was an error/hang, now correct; no public signature changes)
  • Blast radius: DirectCR/RSSACR/CCNRM/DirectCRDirect aggregator setup paths; Float64 results unchanged (identical ops, clamped bound inactive for Float64)
  • Evidence: reproducer before/after above; new tests error/hang on master, 56/56 after; GROUP=InterfaceI and GROUP=QA green
  • Independent review: none yet (draft, awaiting master-chain review)
  • Merge: needs human review — draft PR; merging belongs to the master chain

🤖 Posted by an AI agent — harness: Muse CLI Code · model: muse-ember-1.0
Conversation: local job 674-muse (no session URL)

ChrisRackauckas and others added 2 commits November 10, 2026 02:45
Aggregator constructors computed the table minimum rate as a Float64
(2.0^minexponent), forcing priority-group bounds to Float64 when T was
Float32 or BigFloat. Compute the power of two in T instead.

The PriorityTable constructor also collapsed to zero groups when the
minimum rate was below eps(T) (Float32): priortogid maps values at or
below eps to group 1, giving numgroups = 0 and maxpriority = 0, which
made padtable! spin forever on 0 * 2. Clamp the table to its three base
groups so maxpriority stays positive.

CCNRM's PriorityTimeTable update received times of a wider type than
the table's (t + randexp(rng)/rate is Float64 when T is Float32).
Convert old and new times to the table's type before the TimeGrouper
call.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Muse <noreply@meta.com>
Agent-Harness: Muse CLI Code
Agent-Model: muse-ember-1.0
Agent-Session: local job 674-muse (no session URL)
Cover Float32 PriorityTable and PriorityTimeTable behavior, the
aggregator-style table construction (maxpriority below eps) that hung
pre-fix, full Float32 solves for Direct/DirectCR/RSSACR/CCNRM, and
BigFloat-tspan solves for DirectCR/RSSACR/CCNRM.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Muse <noreply@meta.com>
Agent-Harness: Muse CLI Code
Agent-Model: muse-ember-1.0
Agent-Session: local job 674-muse (no session URL)
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
master f490e93 master / f490e93
aggregators/CCNRM 0.158 ± 0.0053 ms 0.157 ± 0.0046 ms 1 ± 0.045
aggregators/Coevolve 0.185 ± 0.0079 ms 0.189 ± 0.0089 ms 0.98 ± 0.062
aggregators/DirectCR 0.177 ± 0.0092 ms 0.187 ± 0.0093 ms 0.951 ± 0.068
aggregators/DirectFW 0.133 ± 0.004 ms 0.137 ± 0.0042 ms 0.968 ± 0.041
aggregators/FRM 0.122 ± 0.0036 ms 0.128 ± 0.0035 ms 0.955 ± 0.039
aggregators/FRMFW 0.126 ± 0.004 ms 0.13 ± 0.0043 ms 0.967 ± 0.044
aggregators/NRM 0.156 ± 0.0051 ms 0.157 ± 0.0049 ms 0.996 ± 0.045
aggregators/RDirect 0.158 ± 0.005 ms 0.157 ± 0.0052 ms 1.01 ± 0.047
aggregators/RSSA 0.153 ± 0.0053 ms 0.152 ± 0.0062 ms 1.01 ± 0.054
aggregators/RSSACR 0.179 ± 0.0097 ms 0.176 ± 0.0072 ms 1.02 ± 0.069
aggregators/SortingDirect 0.131 ± 0.0042 ms 0.132 ± 0.0037 ms 0.99 ± 0.042
construct/jumpproblem_constantrate 0.13 ± 0.01 μs 0.13 ± 0.011 μs 1 ± 0.11
construct/jumpproblem_massaction 0.431 ± 0.02 μs 0.441 ± 0.019 μs 0.977 ± 0.062
construct/vr_direct 5.94 ± 0.34 μs 5.97 ± 0.34 μs 0.995 ± 0.08
construct/vr_frm 8.64 ± 4.8 μs 8.47 ± 4.5 μs 1.02 ± 0.78
events/ode_division/Direct 0.487 ± 0.0095 ms 0.489 ± 0.009 ms 0.997 ± 0.027
events/sde_dosing/Direct 0.292 ± 0.009 ms 0.29 ± 0.0095 ms 1.01 ± 0.045
events/ssa_dosing/Direct 0.117 ± 0.0016 ms 0.11 ± 0.0018 ms 1.06 ± 0.023
events/vrj_reset/VR_Direct 1.46 ± 0.012 ms 1.46 ± 0.011 ms 1.01 ± 0.011
events/vrj_reset/VR_FRM 2.5 ± 0.028 ms 2.54 ± 0.013 ms 0.984 ± 0.012
ode/mixed/VR_Direct 1.55 ± 0.012 ms 1.56 ± 0.011 ms 0.991 ± 0.01
ode/mixed/VR_FRM 2.6 ± 0.012 ms 2.66 ± 0.0099 ms 0.981 ± 0.0058
ode/sir_zero_drift/Direct 0.368 ± 0.01 ms 0.365 ± 0.0096 ms 1.01 ± 0.039
ode/sir_zero_drift/NRM 0.406 ± 0.01 ms 0.403 ± 0.0095 ms 1.01 ± 0.035
ode/telegraph/Coevolve 0.172 ± 0.0028 ms 0.171 ± 0.0029 ms 1.01 ± 0.024
ode/telegraph/Direct 0.156 ± 0.0037 ms 0.156 ± 0.0026 ms 0.999 ± 0.029
ode/telegraph/NRM 0.168 ± 0.0035 ms 0.162 ± 0.0022 ms 1.04 ± 0.026
pure_jump/bounded_vrj/Coevolve 0.366 ± 0.0092 ms 0.362 ± 0.0096 ms 1.01 ± 0.037
pure_jump/chain/CCNRM 0.868 ± 0.0083 ms 0.845 ± 0.0068 ms 1.03 ± 0.013
pure_jump/chain/Direct 4.84 ± 0.022 ms 4.66 ± 0.033 ms 1.04 ± 0.0088
pure_jump/chain/DirectCR 0.555 ± 0.012 ms 0.559 ± 0.012 ms 0.993 ± 0.03
pure_jump/chain/NRM 0.677 ± 0.012 ms 0.67 ± 0.012 ms 1.01 ± 0.025
pure_jump/chain/RSSA 2.16 ± 0.0086 ms 2.17 ± 0.0097 ms 0.996 ± 0.006
pure_jump/chain/RSSACR 0.528 ± 0.016 ms 0.528 ± 0.013 ms 1 ± 0.039
pure_jump/chain/SortingDirect 1.31 ± 0.014 ms 1.32 ± 0.014 ms 0.991 ± 0.015
sde/mixed/VR_Direct 1.09 ± 0.0075 ms 1.08 ± 0.008 ms 1 ± 0.01
sde/mixed/VR_FRM 5.67 ± 0.026 ms 5.53 ± 0.077 ms 1.03 ± 0.015
sde/telegraph/Direct 0.29 ± 0.0092 ms 0.29 ± 0.0095 ms 1 ± 0.046
solve/constantrate 0.129 ± 0.0035 ms 0.128 ± 0.0039 ms 1 ± 0.041
solve/massaction 0.132 ± 0.004 ms 0.13 ± 0.0036 ms 1.02 ± 0.042
vrj/m1_1/VR_Direct 0.335 ± 0.0092 ms 0.339 ± 0.009 ms 0.99 ± 0.038
vrj/m1_1/VR_DirectFW 0.369 ± 0.0096 ms 0.373 ± 0.0093 ms 0.988 ± 0.036
vrj/m1_1/VR_FRM 0.543 ± 0.01 ms 0.538 ± 0.011 ms 1.01 ± 0.028
vrj/m1_16/Coevolve 0.182 ± 0.0069 ms 0.183 ± 0.0064 ms 0.995 ± 0.051
vrj/m1_16/VR_Direct 0.69 ± 0.008 ms 0.69 ± 0.0077 ms 0.999 ± 0.016
vrj/m1_16/VR_DirectFW 0.934 ± 0.0077 ms 0.94 ± 0.018 ms 0.994 ± 0.02
vrj/m1_16/VR_FRM 2.35 ± 0.019 ms 2.35 ± 0.021 ms 1 ± 0.012
time_to_load 1.01 ± 0.0099 s 1.01 ± 0.0068 s 1 ± 0.012
Memory benchmarks
master f490e93 master / f490e93
aggregators/CCNRM 3.65 k allocs: 0.231 MB 3.65 k allocs: 0.231 MB 1
aggregators/Coevolve 3.65 k allocs: 0.232 MB 3.65 k allocs: 0.232 MB 1
aggregators/DirectCR 3.66 k allocs: 0.232 MB 3.66 k allocs: 0.232 MB 1
aggregators/DirectFW 3.71 k allocs: 0.234 MB 3.71 k allocs: 0.234 MB 1
aggregators/FRM 3.68 k allocs: 0.233 MB 3.68 k allocs: 0.233 MB 1
aggregators/FRMFW 3.68 k allocs: 0.233 MB 3.68 k allocs: 0.233 MB 1
aggregators/NRM 3.65 k allocs: 0.232 MB 3.65 k allocs: 0.232 MB 1
aggregators/RDirect 3.69 k allocs: 0.233 MB 3.69 k allocs: 0.233 MB 1
aggregators/RSSA 3.63 k allocs: 0.231 MB 3.63 k allocs: 0.231 MB 1
aggregators/RSSACR 3.71 k allocs: 0.234 MB 3.71 k allocs: 0.234 MB 1
aggregators/SortingDirect 3.69 k allocs: 0.233 MB 3.69 k allocs: 0.233 MB 1
construct/jumpproblem_constantrate 15 allocs: 0.625 kB 15 allocs: 0.625 kB 1
construct/jumpproblem_massaction 14 allocs: 0.688 kB 14 allocs: 0.688 kB 1
construct/vr_direct 0.106 k allocs: 5.08 kB 0.106 k allocs: 5.08 kB 1
construct/vr_frm 0.086 k allocs: 13 kB 0.086 k allocs: 13 kB 1
events/ode_division/Direct 0.082 k allocs: 4.34 kB 0.082 k allocs: 4.34 kB 1
events/sde_dosing/Direct 0.184 k allocs: 9.94 kB 0.184 k allocs: 9.94 kB 1
events/ssa_dosing/Direct 15 allocs: 1 kB 15 allocs: 1 kB 1
events/vrj_reset/VR_Direct 0.099 k allocs: 5.64 kB 0.099 k allocs: 5.64 kB 1
events/vrj_reset/VR_FRM 0.142 k allocs: 7.58 kB 0.142 k allocs: 7.58 kB 1
ode/mixed/VR_Direct 0.082 k allocs: 4.36 kB 0.082 k allocs: 4.36 kB 1
ode/mixed/VR_FRM 0.123 k allocs: 6.09 kB 0.123 k allocs: 6.09 kB 1
ode/sir_zero_drift/Direct 0.068 k allocs: 3.62 kB 0.068 k allocs: 3.62 kB 1
ode/sir_zero_drift/NRM 0.075 k allocs: 3.91 kB 0.075 k allocs: 3.91 kB 1
ode/telegraph/Coevolve 0.079 k allocs: 4.05 kB 0.079 k allocs: 4.05 kB 1
ode/telegraph/Direct 0.07 k allocs: 3.69 kB 0.07 k allocs: 3.69 kB 1
ode/telegraph/NRM 0.077 k allocs: 3.97 kB 0.077 k allocs: 3.97 kB 1
pure_jump/bounded_vrj/Coevolve 25 allocs: 2.2 kB 25 allocs: 2.2 kB 1
pure_jump/chain/CCNRM 19 allocs: 8.8 kB 19 allocs: 8.8 kB 1
pure_jump/chain/Direct 16 allocs: 5.61 kB 16 allocs: 5.61 kB 1
pure_jump/chain/DirectCR 16 allocs: 5.61 kB 16 allocs: 5.61 kB 1
pure_jump/chain/NRM 26 allocs: 18.4 kB 26 allocs: 18.4 kB 1
pure_jump/chain/RSSA 16 allocs: 5.61 kB 16 allocs: 5.61 kB 1
pure_jump/chain/RSSACR 16 allocs: 5.61 kB 16 allocs: 5.61 kB 1
pure_jump/chain/SortingDirect 16 allocs: 5.61 kB 16 allocs: 5.61 kB 1
sde/mixed/VR_Direct 0.204 k allocs: 11.6 kB 0.204 k allocs: 11.6 kB 1
sde/mixed/VR_FRM 0.328 k allocs: 17.9 kB 0.328 k allocs: 17.9 kB 1
sde/telegraph/Direct 0.183 k allocs: 9.81 kB 0.183 k allocs: 9.81 kB 1
solve/constantrate 3.71 k allocs: 0.234 MB 3.71 k allocs: 0.234 MB 1
solve/massaction 3.71 k allocs: 0.234 MB 3.71 k allocs: 0.234 MB 1
vrj/m1_1/VR_Direct 0.082 k allocs: 4.33 kB 0.082 k allocs: 4.33 kB 1
vrj/m1_1/VR_DirectFW 0.082 k allocs: 4.33 kB 0.082 k allocs: 4.33 kB 1
vrj/m1_1/VR_FRM 0.123 k allocs: 6.19 kB 0.123 k allocs: 6.19 kB 1
vrj/m1_16/Coevolve 0.079 k allocs: 6.67 kB 0.079 k allocs: 6.67 kB 1
vrj/m1_16/VR_Direct 0.082 k allocs: 6.52 kB 0.082 k allocs: 6.52 kB 1
vrj/m1_16/VR_DirectFW 0.082 k allocs: 6.52 kB 0.082 k allocs: 6.52 kB 1
vrj/m1_16/VR_FRM 0.159 k allocs: 20.3 kB 0.159 k allocs: 20.3 kB 1
time_to_load 0.2 k allocs: 11.7 kB 0.2 k allocs: 11.7 kB 1

Benchmark Results (Julia lts)

Time benchmarks
master f490e93 master / f490e93
aggregators/CCNRM 0.116 ± 0.0037 ms 0.114 ± 0.0033 ms 1.02 ± 0.044
aggregators/Coevolve 0.135 ± 0.0038 ms 0.135 ± 0.0048 ms 1 ± 0.046
aggregators/DirectCR 0.135 ± 0.004 ms 0.134 ± 0.0044 ms 1 ± 0.045
aggregators/DirectFW 0.0947 ± 0.0034 ms 0.101 ± 0.0036 ms 0.935 ± 0.048
aggregators/FRM 0.0935 ± 0.0043 ms 0.0956 ± 0.0039 ms 0.977 ± 0.06
aggregators/FRMFW 0.0972 ± 0.0044 ms 0.0993 ± 0.0072 ms 0.979 ± 0.084
aggregators/NRM 0.121 ± 0.0033 ms 0.118 ± 0.0034 ms 1.03 ± 0.041
aggregators/RDirect 0.115 ± 0.0041 ms 0.13 ± 0.0047 ms 0.886 ± 0.045
aggregators/RSSA 0.107 ± 0.0048 ms 0.109 ± 0.0037 ms 0.975 ± 0.055
aggregators/RSSACR 0.13 ± 0.0054 ms 0.134 ± 0.0066 ms 0.967 ± 0.062
aggregators/SortingDirect 0.0952 ± 0.0045 ms 0.105 ± 0.0031 ms 0.91 ± 0.051
construct/jumpproblem_constantrate 0.161 ± 0.029 μs 0.16 ± 0.029 μs 1.01 ± 0.26
construct/jumpproblem_massaction 0.351 ± 0.021 μs 0.351 ± 0.02 μs 1 ± 0.083
construct/vr_direct 4.52 ± 0.38 μs 4.41 ± 0.35 μs 1.02 ± 0.12
construct/vr_frm 7.67 ± 0.72 μs 7.78 ± 1.2 μs 0.986 ± 0.18
events/ode_division/Direct 0.368 ± 0.0085 ms 0.348 ± 0.0058 ms 1.06 ± 0.03
events/sde_dosing/Direct 0.196 ± 0.0046 ms 0.192 ± 0.0041 ms 1.02 ± 0.033
events/ssa_dosing/Direct 0.0691 ± 0.0047 ms 0.0703 ± 0.001 ms 0.983 ± 0.069
events/vrj_reset/VR_Direct 1.03 ± 0.013 ms 1.03 ± 0.0091 ms 1.01 ± 0.015
events/vrj_reset/VR_FRM 1.38 ± 0.021 ms 1.39 ± 0.018 ms 0.992 ± 0.02
ode/mixed/VR_Direct 1.06 ± 0.016 ms 1.02 ± 0.0093 ms 1.04 ± 0.018
ode/mixed/VR_FRM 1.6 ± 0.02 ms 1.59 ± 0.014 ms 1.01 ± 0.015
ode/sir_zero_drift/Direct 0.312 ± 0.011 ms 0.308 ± 0.0078 ms 1.01 ± 0.043
ode/sir_zero_drift/NRM 0.331 ± 0.011 ms 0.337 ± 0.0079 ms 0.983 ± 0.04
ode/telegraph/Coevolve 0.125 ± 0.004 ms 0.127 ± 0.0018 ms 0.982 ± 0.034
ode/telegraph/Direct 0.109 ± 0.0032 ms 0.111 ± 0.0015 ms 0.982 ± 0.032
ode/telegraph/NRM 0.114 ± 0.0018 ms 0.114 ± 0.0027 ms 0.996 ± 0.028
pure_jump/bounded_vrj/Coevolve 0.205 ± 0.0071 ms 0.213 ± 0.0055 ms 0.962 ± 0.041
pure_jump/chain/CCNRM 0.43 ± 0.0092 ms 0.437 ± 0.014 ms 0.984 ± 0.037
pure_jump/chain/Direct 2.1 ± 0.037 ms 2.36 ± 0.099 ms 0.887 ± 0.04
pure_jump/chain/DirectCR 0.344 ± 0.0081 ms 0.345 ± 0.0075 ms 0.997 ± 0.032
pure_jump/chain/NRM 0.435 ± 0.0093 ms 0.439 ± 0.011 ms 0.992 ± 0.032
pure_jump/chain/RSSA 1.03 ± 0.023 ms 1.1 ± 0.053 ms 0.936 ± 0.05
pure_jump/chain/RSSACR 0.263 ± 0.007 ms 0.261 ± 0.0073 ms 1.01 ± 0.039
pure_jump/chain/SortingDirect 0.65 ± 0.021 ms 0.643 ± 0.0085 ms 1.01 ± 0.035
sde/mixed/VR_Direct 0.654 ± 0.01 ms 0.633 ± 0.036 ms 1.03 ± 0.062
sde/mixed/VR_FRM 3.57 ± 0.08 ms 3.46 ± 0.13 ms 1.03 ± 0.044
sde/telegraph/Direct 0.201 ± 0.0051 ms 0.195 ± 0.0044 ms 1.03 ± 0.035
solve/constantrate 0.0851 ± 0.0042 ms 0.0859 ± 0.0034 ms 0.99 ± 0.063
solve/massaction 0.0932 ± 0.004 ms 0.102 ± 0.0042 ms 0.911 ± 0.054
vrj/m1_1/VR_Direct 0.231 ± 0.0065 ms 0.232 ± 0.0065 ms 0.996 ± 0.039
vrj/m1_1/VR_DirectFW 0.257 ± 0.0058 ms 0.25 ± 0.0063 ms 1.03 ± 0.035
vrj/m1_1/VR_FRM 0.312 ± 0.0068 ms 0.31 ± 0.0095 ms 1.01 ± 0.038
vrj/m1_16/Coevolve 0.133 ± 0.0035 ms 0.139 ± 0.0023 ms 0.961 ± 0.03
vrj/m1_16/VR_Direct 0.456 ± 0.008 ms 0.451 ± 0.0063 ms 1.01 ± 0.023
vrj/m1_16/VR_DirectFW 0.497 ± 0.009 ms 0.49 ± 0.0068 ms 1.01 ± 0.023
vrj/m1_16/VR_FRM 1.62 ± 0.028 ms 1.57 ± 0.019 ms 1.03 ± 0.022
time_to_load 0.925 ± 0.027 s 0.946 ± 0.012 s 0.978 ± 0.031
Memory benchmarks
master f490e93 master / f490e93
aggregators/CCNRM 1.82 k allocs: 0.192 MB 1.82 k allocs: 0.192 MB 1
aggregators/Coevolve 1.83 k allocs: 0.192 MB 1.83 k allocs: 0.192 MB 1
aggregators/DirectCR 1.83 k allocs: 0.193 MB 1.83 k allocs: 0.193 MB 1
aggregators/DirectFW 1.85 k allocs: 0.194 MB 1.85 k allocs: 0.194 MB 1
aggregators/FRM 1.84 k allocs: 0.194 MB 1.84 k allocs: 0.194 MB 1
aggregators/FRMFW 1.84 k allocs: 0.194 MB 1.84 k allocs: 0.194 MB 1
aggregators/NRM 1.83 k allocs: 0.192 MB 1.83 k allocs: 0.192 MB 1
aggregators/RDirect 1.84 k allocs: 0.194 MB 1.84 k allocs: 0.194 MB 1
aggregators/RSSA 1.82 k allocs: 0.192 MB 1.82 k allocs: 0.192 MB 1
aggregators/RSSACR 1.85 k allocs: 0.194 MB 1.85 k allocs: 0.194 MB 1
aggregators/SortingDirect 1.84 k allocs: 0.194 MB 1.84 k allocs: 0.194 MB 1
construct/jumpproblem_constantrate 12 allocs: 0.781 kB 12 allocs: 0.781 kB 1
construct/jumpproblem_massaction 10 allocs: 0.703 kB 10 allocs: 0.703 kB 1
construct/vr_direct 0.1 k allocs: 5.36 kB 0.1 k allocs: 5.36 kB 1
construct/vr_frm 0.097 k allocs: 15 kB 0.097 k allocs: 15 kB 1
events/ode_division/Direct 0.059 k allocs: 4.8 kB 0.059 k allocs: 4.8 kB 1
events/sde_dosing/Direct 0.133 k allocs: 10.7 kB 0.133 k allocs: 10.7 kB 1
events/ssa_dosing/Direct 10 allocs: 1.03 kB 10 allocs: 1.03 kB 1
events/vrj_reset/VR_Direct 0.072 k allocs: 6.09 kB 0.072 k allocs: 6.09 kB 1
events/vrj_reset/VR_FRM 0.093 k allocs: 8.06 kB 0.093 k allocs: 8.06 kB 1
ode/mixed/VR_Direct 0.059 k allocs: 4.81 kB 0.059 k allocs: 4.81 kB 1
ode/mixed/VR_FRM 0.079 k allocs: 6.58 kB 0.079 k allocs: 6.58 kB 1
ode/sir_zero_drift/Direct 0.052 k allocs: 4.17 kB 0.052 k allocs: 4.17 kB 1
ode/sir_zero_drift/NRM 0.056 k allocs: 4.45 kB 0.056 k allocs: 4.45 kB 1
ode/telegraph/Coevolve 0.057 k allocs: 4.53 kB 0.057 k allocs: 4.53 kB 1
ode/telegraph/Direct 0.052 k allocs: 4.17 kB 0.052 k allocs: 4.17 kB 1
ode/telegraph/NRM 0.056 k allocs: 4.45 kB 0.056 k allocs: 4.45 kB 1
pure_jump/bounded_vrj/Coevolve 16 allocs: 2.28 kB 16 allocs: 2.28 kB 1
pure_jump/chain/CCNRM 12 allocs: 9.34 kB 12 allocs: 9.34 kB 1
pure_jump/chain/Direct 11 allocs: 6.09 kB 11 allocs: 6.09 kB 1
pure_jump/chain/DirectCR 11 allocs: 6.09 kB 11 allocs: 6.09 kB 1
pure_jump/chain/NRM 15 allocs: 19 kB 15 allocs: 19 kB 1
pure_jump/chain/RSSA 11 allocs: 6.09 kB 11 allocs: 6.09 kB 1
pure_jump/chain/RSSACR 11 allocs: 6.09 kB 11 allocs: 6.09 kB 1
pure_jump/chain/SortingDirect 11 allocs: 6.09 kB 11 allocs: 6.09 kB 1
sde/mixed/VR_Direct 0.144 k allocs: 12.1 kB 0.144 k allocs: 12.1 kB 1
sde/mixed/VR_FRM 0.21 k allocs: 19 kB 0.21 k allocs: 19 kB 1
sde/telegraph/Direct 0.133 k allocs: 10.6 kB 0.133 k allocs: 10.6 kB 1
solve/constantrate 1.85 k allocs: 0.194 MB 1.85 k allocs: 0.194 MB 1
solve/massaction 1.85 k allocs: 0.194 MB 1.85 k allocs: 0.194 MB 1
vrj/m1_1/VR_Direct 0.059 k allocs: 4.78 kB 0.059 k allocs: 4.78 kB 1
vrj/m1_1/VR_DirectFW 0.059 k allocs: 4.78 kB 0.059 k allocs: 4.78 kB 1
vrj/m1_1/VR_FRM 0.079 k allocs: 6.67 kB 0.079 k allocs: 6.67 kB 1
vrj/m1_16/Coevolve 0.057 k allocs: 7.17 kB 0.057 k allocs: 7.17 kB 1
vrj/m1_16/VR_Direct 0.059 k allocs: 6.97 kB 0.059 k allocs: 6.97 kB 1
vrj/m1_16/VR_DirectFW 0.059 k allocs: 6.97 kB 0.059 k allocs: 6.97 kB 1
vrj/m1_16/VR_FRM 0.107 k allocs: 20.8 kB 0.107 k allocs: 20.8 kB 1
time_to_load 0.153 k allocs: 14.5 kB 0.153 k allocs: 14.5 kB 1

@isaacsas

Copy link
Copy Markdown
Member

Thanks for this, and for tracking down the causes in #674. I've opened #718, which supersedes this PR. It ports the minrate and three-group fixes from here, crediting this PR's author as co-author on that commit. It also draws jump times in the time's type in every aggregator, so t + randexp(rng) / rate no longer widens Float32 times; that makes the converts in update!(::PriorityTimeTable) unnecessary, so they aren't included. #718 also adds a HISTORY entry and Float32/BigFloat solve tests for every SSA aggregator, NSM and DirectCRDirect, and checks that Float64 results and compiled code are unchanged.

🤖 Generated with Claude Code 2.1.321 (model: claude-opus-5-5)

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.

DirectCR, RSSACR and CCNRM fail with Float32 rates/tspan (Float64 hardcoded in priority-table setup)

3 participants