Skip to content

Commit

Permalink
add DiffEqScalar support for LinearProblem construction
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 14, 2021
1 parent 9abec93 commit dc04f8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "1.22.0"
version = "1.22.1"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
2 changes: 2 additions & 0 deletions src/problems/basic_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ end
function LinearProblem(A,b,args...;kwargs...)
if A isa AbstractArray
LinearProblem{true}(DiffEqArrayOperator(A),b,args...;kwargs...)
elseif A isa Number
LinearProblem{true}(DiffEqScalar(A),b,args...;kwargs...)
else
LinearProblem{isinplace(A, 4)}(A,b,args...;kwargs...)
end
Expand Down

0 comments on commit dc04f8b

Please sign in to comment.