Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .github/workflows/reactant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ jobs:
timeout-minutes: 300
env:
REACTANT_BACKENDS: cpu
# Coverage slows compilation: the wide coupled reverse case at T = 400
# compiles in about 290 s without it and passes 600 s with it.
REACTANT_TIMEOUT: 1800
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
Expand Down
8 changes: 5 additions & 3 deletions src/operators/growth.jl
Original file line number Diff line number Diff line change
Expand Up @@ -602,13 +602,15 @@ function _eigen_jacobian(
M = _primal_matrix(lin, gain, at, ρ, L, S)
Dv = _fixed(_lagged(lin, gain, at, v, ρ, L))
# Filled block by block in an array like `M`, so that it takes the
# number type of the entries, tracked or not.
# number type of the entries, tracked or not. The last row is a view
# with two ranges: a traced array cannot take a row written through a
# view indexed by an integer.
T = promote_type(eltype(M), eltype(Dv))
J = similar(M, T, S + 1, S + 1)
view(J, 1:S, 1:S) .= M - I
view(J, 1:S, S + 1) .= .-Dv
view(J, S + 1, 1:S) .= one(T)
view(J, S + 1, (S + 1):(S + 1)) .= zero(T)
view(J, (S + 1):(S + 1), 1:S) .= one(T)
view(J, (S + 1):(S + 1), (S + 1):(S + 1)) .= zero(T)
return ρ, v, _inverse(J)
end

Expand Down
Loading