Skip to content

Commit 55f977a

Browse files
committed
linear alias and ODEALias
1 parent 05d0013 commit 55f977a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/problems/linear_problems.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,12 @@ function LinearProblem(A, b, args...; kwargs...)
7676
LinearProblem{isinplace(A, 4)}(A, b, args...; kwargs...)
7777
end
7878
end
79+
80+
struct LinearAliases <: AbstractAliasSpecifier
81+
alias_A::Union{Bool,Nothing}
82+
alias_b::Union{Bool,Nothing}
83+
end
84+
85+
function LinearAliases(;alias_A = nothing, alias_b = nothing)
86+
LinearAliases(alias_A, alias_b)
87+
end

src/problems/ode_problems.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,3 +511,12 @@ function IncrementingODEProblem{iip}(f::IncrementingODEFunction, u0, tspan,
511511
p = NullParameters(); kwargs...) where {iip}
512512
ODEProblem(f, u0, tspan, p, IncrementingODEProblem{iip}(); kwargs...)
513513
end
514+
515+
516+
struct ODEAliases <: AbstractAliasSpecifier
517+
u0::Union{Bool,Nothing}
518+
end
519+
520+
function ODEAliases(;u0 = nothing)
521+
ODEAliases(u0)
522+
end

0 commit comments

Comments
 (0)