Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to scimloperators #210

Closed
wants to merge 141 commits into from
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
8569955
switch to scimloperators
vpuri3 Aug 2, 2022
c75945b
typos
vpuri3 Aug 2, 2022
fead22d
update scimlops compat
vpuri3 Aug 3, 2022
354ab5e
update linearproblem
vpuri3 Aug 3, 2022
413e68c
add workflows from https://github.com/SciML/SciMLBase.jl/pull/183
vpuri3 Aug 3, 2022
a2f9503
dont convert matrix to matrixoperator
vpuri3 Aug 3, 2022
38cc871
comment
vpuri3 Aug 3, 2022
c8ff3c5
default_update_func
vpuri3 Aug 3, 2022
325275d
dep paths
vpuri3 Aug 4, 2022
5cef436
exports
vpuri3 Aug 4, 2022
09f7642
rm scimlop compat, downstream workflow for linearsolve, diffeqsensiti…
vpuri3 Aug 4, 2022
01850f3
ignore all manifests
vpuri3 Aug 5, 2022
c31ac06
add isconstant
vpuri3 Aug 5, 2022
3c83b31
add DelayDiffEq
vpuri3 Aug 5, 2022
752b2af
messing with project.toml
vpuri3 Aug 5, 2022
789b238
doubled ODE
vpuri3 Aug 5, 2022
56b507c
try downstream tests again
vpuri3 Aug 6, 2022
0125136
Merge branch 'master' into scimlops
vpuri3 Aug 6, 2022
1e39aeb
find error
vpuri3 Aug 6, 2022
19d39b2
Merge branch 'scimlops' of github.com:vpuri3/SciMLBase.jl into HEAD
vpuri3 Aug 6, 2022
619c89b
scimlop compat
vpuri3 Aug 6, 2022
9c930ba
run all tests
vpuri3 Aug 6, 2022
dea12c3
diffeqbase has diffeqoperatorcombination
vpuri3 Aug 6, 2022
34f022c
add full noise option for analytic solution
rmsrosa Aug 28, 2022
7058297
pass full `sol`
rmsrosa Aug 29, 2022
31f4f83
make `analytic_full` be Bool
rmsrosa Aug 29, 2022
e0c8f83
format!
rmsrosa Aug 29, 2022
39a62bd
fix default for `analytic_full`
rmsrosa Aug 29, 2022
a6d341f
add type and fix default arg
rmsrosa Aug 29, 2022
a5d4605
format
rmsrosa Aug 29, 2022
a347ea5
Merge branch 'master' into rode_analytic
rmsrosa Aug 29, 2022
4199bf8
redo it after merge
rmsrosa Aug 30, 2022
18eb8f9
format
rmsrosa Aug 30, 2022
02fd5eb
update docstring
rmsrosa Aug 30, 2022
d1738d8
adjust docstring
rmsrosa Aug 30, 2022
d56b2fa
add tests to RODEFunction
rmsrosa Aug 30, 2022
70b5744
SciML formating
rmsrosa Aug 30, 2022
59b3a5c
Do not wrap at problem build time
ChrisRackauckas Sep 1, 2022
9405001
keep the manual functionwrapper mode
ChrisRackauckas Sep 2, 2022
9d9addb
Merge pull request #240 from SciML/wrap
ChrisRackauckas Sep 2, 2022
89294f0
Update Project.toml
ChrisRackauckas Sep 2, 2022
77cedb8
Print sizes that mismatched in error messages
Keno Sep 3, 2022
e3920f2
Merge pull request #241 from Keno/kf/bettererrors
ChrisRackauckas Sep 3, 2022
3771514
Allow for early wrapping
ChrisRackauckas Sep 3, 2022
0df376e
typos and format
ChrisRackauckas Sep 3, 2022
ed4459f
fix missing definition
ChrisRackauckas Sep 3, 2022
2f4defe
Merge pull request #242 from SciML/functionwrapperspecialize
ChrisRackauckas Sep 3, 2022
fc8b85a
hotfix FunctionWrapperSpecialize
ChrisRackauckas Sep 3, 2022
b942882
Improve definition of `f`
ChrisRackauckas Sep 6, 2022
8d3bb45
Merge pull request #243 from SciML/ChrisRackauckas-patch-1
ChrisRackauckas Sep 6, 2022
5232790
Update Downstream.yml
isaacsas Sep 6, 2022
8cbaa54
Merge pull request #244 from SciML/JumpProcesses-not-DiffEqJump-for-d…
ChrisRackauckas Sep 6, 2022
1b2d916
remove unbound type parameter
nsajko Sep 8, 2022
993d37d
Update src/scimlfunctions.jl
ChrisRackauckas Sep 8, 2022
d69f42b
Update src/scimlfunctions.jl
ChrisRackauckas Sep 8, 2022
11f6542
Update src/scimlfunctions.jl
ChrisRackauckas Sep 8, 2022
0dcd62f
Merge pull request #233 from rmsrosa/rode_analytic
ChrisRackauckas Sep 8, 2022
dd8037e
Update Project.toml
ChrisRackauckas Sep 8, 2022
fc7f8c5
Merge pull request #245 from nsajko/t
ChrisRackauckas Sep 8, 2022
fb44bd5
add pdesys structs
xtalax Sep 9, 2022
006e265
fallback wrap_sol
xtalax Sep 9, 2022
a3d2a3c
abastract types
xtalax Sep 9, 2022
0e04c07
format
xtalax Sep 9, 2022
e7534e8
give NonlinearProblem a problem_type
xtalax Sep 9, 2022
b046064
allow unwrapping to rewrap
ChrisRackauckas Sep 9, 2022
a81f8a7
fix struct
xtalax Sep 9, 2022
27432bb
typo
xtalax Sep 9, 2022
05bba7f
fix pt
xtalax Sep 9, 2022
bd9f936
format
xtalax Sep 9, 2022
122c45e
modified: src/problems/bvp_problems.jl cODEFunction -> ODEFunction
hustf Sep 12, 2022
dc9970f
Update Downstream.yml
ChrisRackauckas Sep 12, 2022
74513ad
Merge pull request #247 from hustf/FixcODEFunction
ChrisRackauckas Sep 12, 2022
274beab
Update Project.toml
ChrisRackauckas Sep 12, 2022
77a744d
Update dae_problems.jl
thomvet Sep 13, 2022
aaf79c6
Merge pull request #250 from thomvet/patch-1
ChrisRackauckas Sep 13, 2022
bcec082
Merge pull request #246 from xtalax/pdesys2
ChrisRackauckas Sep 14, 2022
bc4be96
Update Project.toml
ChrisRackauckas Sep 14, 2022
57dcab7
DiffEqBase Hotfix
xtalax Sep 14, 2022
b27053a
correct branch
xtalax Sep 14, 2022
9c2587d
no T
xtalax Sep 14, 2022
c11231a
Merge pull request #251 from xtalax/pdesys2
ChrisRackauckas Sep 14, 2022
9fdd77d
Update Project.toml
YingboMa Sep 14, 2022
a22f76d
Allow for setting the default specialization via Preferences
ChrisRackauckas Sep 15, 2022
58ffe00
add Preferences to Project.toml
ChrisRackauckas Sep 15, 2022
32a7dc7
More robust hotfix
ChrisRackauckas Sep 15, 2022
b0da7eb
Update Project.toml
ChrisRackauckas Sep 15, 2022
aaec405
format
ChrisRackauckas Sep 15, 2022
3d20777
Merge pull request #252 from SciML/default_specialization
ChrisRackauckas Sep 15, 2022
c491731
Update Project.toml
ChrisRackauckas Sep 15, 2022
a83dc9b
Add `indepsym`, `paramsyms`, getindex functions, tests
AayushSabharwal Sep 15, 2022
caf95a4
Formatting
AayushSabharwal Sep 15, 2022
c607c74
Disable tests requiring MTK updates
AayushSabharwal Sep 15, 2022
025d73c
Update src/scimlfunctions.jl
ChrisRackauckas Sep 15, 2022
293ece1
Update scimlfunctions.jl
ChrisRackauckas Sep 15, 2022
d688d5d
fix condition
xtalax Sep 15, 2022
f03cdc0
Merge pull request #255 from xtalax/property
ChrisRackauckas Sep 16, 2022
ec877b2
Update Project.toml
ChrisRackauckas Sep 16, 2022
5d2fa25
Formatting
AayushSabharwal Sep 17, 2022
0027a54
Merge pull request #253 from AayushSabharwal/paramsyms
ChrisRackauckas Sep 17, 2022
52a78bf
Update Project.toml
ChrisRackauckas Sep 17, 2022
073e262
Fully document the specialization mechanism
ChrisRackauckas Sep 19, 2022
c16adc1
try getproperty for indexing with symbol
ChrisRackauckas Sep 20, 2022
12abbeb
format rebellion
ChrisRackauckas Sep 20, 2022
c1fdab5
Merge pull request #257 from SciML/specialization_docs
ChrisRackauckas Sep 20, 2022
3e978ae
Update Project.toml
ChrisRackauckas Sep 20, 2022
2d71886
Update Problems.md
ChrisRackauckas Sep 20, 2022
40868c3
Update Project.toml
ChrisRackauckas Sep 20, 2022
7d9427c
Update scimlfunctions.jl
ChrisRackauckas Sep 20, 2022
11bc7ae
Update Project.toml
ChrisRackauckas Sep 20, 2022
dd17545
improve the documentation of specialization levels
ChrisRackauckas Sep 21, 2022
0f73d97
fix legacy bool
ChrisRackauckas Sep 21, 2022
6fe4336
format
ChrisRackauckas Sep 21, 2022
a4c969c
Merge pull request #258 from SciML/specialize
ChrisRackauckas Sep 21, 2022
f1a9cde
Update Project.toml
ChrisRackauckas Sep 21, 2022
eebb0c9
switch to scimloperators
vpuri3 Aug 2, 2022
37f5fa4
typos
vpuri3 Aug 2, 2022
d907c5e
update scimlops compat
vpuri3 Aug 3, 2022
ea4b2f9
update linearproblem
vpuri3 Aug 3, 2022
2c5357a
add workflows from https://github.com/SciML/SciMLBase.jl/pull/183
vpuri3 Aug 3, 2022
0d2337b
dont convert matrix to matrixoperator
vpuri3 Aug 3, 2022
50a6e2b
comment
vpuri3 Aug 3, 2022
e95db7a
default_update_func
vpuri3 Aug 3, 2022
0d9f929
dep paths
vpuri3 Aug 4, 2022
381b5d1
exports
vpuri3 Aug 4, 2022
1e9a283
rm scimlop compat, downstream workflow for linearsolve, diffeqsensiti…
vpuri3 Aug 4, 2022
17c540f
ignore all manifests
vpuri3 Aug 5, 2022
1fe275e
add isconstant
vpuri3 Aug 5, 2022
0b62928
add DelayDiffEq
vpuri3 Aug 5, 2022
77741f9
messing with project.toml
vpuri3 Aug 5, 2022
5ecedcb
doubled ODE
vpuri3 Aug 5, 2022
a02b067
try downstream tests again
vpuri3 Aug 6, 2022
0de82d5
find error
vpuri3 Aug 6, 2022
d362e7a
scimlop compat
vpuri3 Aug 6, 2022
3e0c73d
run all tests
vpuri3 Aug 6, 2022
b67bc07
diffeqbase has diffeqoperatorcombination
vpuri3 Aug 6, 2022
881eff7
Merge branch 'scimlops' of github.com:vpuri3/SciMLBase.jl into scimlops
vpuri3 Sep 21, 2022
318e622
fixing depracation errors
vpuri3 Sep 21, 2022
246ff55
affine bugs
vpuri3 Sep 21, 2022
a8adae5
diffeqbase tests passing locally
vpuri3 Sep 21, 2022
8620e51
format ok now??
vpuri3 Sep 21, 2022
944ad2c
auto format
vpuri3 Sep 22, 2022
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
4 changes: 3 additions & 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.45.0"
version = "1.46.0"

[deps]
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
Expand All @@ -15,6 +15,8 @@ Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961"
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Expand Down
98 changes: 66 additions & 32 deletions src/SciMLBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ using Statistics
using Distributed
using Markdown

using Reexport
@reexport using SciMLOperators
using SciMLOperators: AbstractSciMLOperator, AbstractSciMLLinearOperator,
IdentityOperator, ComposedOperator, ScaledOperator,
InvertedOperator, InvertibleOperator,
DEFAULT_UPDATE_FUNC

import Logging, ArrayInterfaceCore
import IteratorInterfaceExtensions
import CommonSolve: solve, init, solve!
Expand Down Expand Up @@ -450,26 +457,6 @@ $(TYPEDEF)
abstract type AbstractSensitivitySolution{T, N, S} <: AbstractTimeseriesSolution{T, N, S} end

# Misc
"""
$(TYPEDEF)
"""
abstract type AbstractSciMLOperator{T} end

"""
$(TYPEDEF)
"""
abstract type AbstractDiffEqOperator{T} <: AbstractSciMLOperator{T} end

"""
$(TYPEDEF)
"""
abstract type AbstractDiffEqLinearOperator{T} <: AbstractDiffEqOperator{T} end

"""
$(TYPEDEF)
"""
abstract type AbstractDiffEqCompositeOperator{T} <: AbstractDiffEqLinearOperator{T} end

"""
$(TYPEDEF)

Expand Down Expand Up @@ -543,11 +530,6 @@ include("function_wrappers.jl")
include("scimlfunctions.jl")
include("alg_traits.jl")

include("operators/operators.jl")
include("operators/basic_operators.jl")
include("operators/diffeq_operator.jl")
include("operators/common_defaults.jl")

include("problems/problem_utils.jl")
include("problems/discrete_problems.jl")
include("problems/steady_state_problems.jl")
Expand Down Expand Up @@ -609,6 +591,65 @@ const SciMLSolution = AbstractSciMLSolution

export DEAlgorithm, SciMLAlgorithm, DEProblem, DEAlgorithm, DESolution, SciMLSolution

# deprecated operator interface
const AbstractDiffEqOperator = AbstractSciMLOperator
const AbstractDiffEqLinearOperator = AbstractSciMLLinearOperator
const AbstractDiffEqCompositeOperator = ComposedOperator

const DiffEqScaledOperator = ScaledOperator
function DiffEqScaledOperator(args...; kwargs...)
@warn "SciMLBase.DiffEqScaledOperator is deprecated.
Use SciMLOperators.ScaledOperator instead"

ScaledOperator(args...; kwargs...)
end

const FactorizedDiffEqArrayOperator = InvertedOperator
function FactorizedDiffEqArrayOperator(args...; kwargs...)
@warn "SciMLBase.FactorizedDiffEqArrayOperator is deprecated.
Use SciMLOperators.InvertedOperator instead"

InvertedOperator(args...; kwargs...)
end

const DiffEqIdentity = IdentityOperator
function DiffEqIdentity(u)
@warn "SciMLBase.DiffEqIdentity is deprecated.
Use SciMLOperators.IdentityOperator instead"

IdentityOperator{size(u, 1)}()
end

const DiffEqScalar = SciMLOperators.ScalarOperator
function DiffEqScalar(args...; kwargs...)
@warn "SciMLBase.DiffEqScalar is deprecated.
Use SciMLOperators.ScaledOperator instead"

ScalarOperator(args...; kwargs...)
end

const AffineDiffEqOperator = SciMLOperators.AffineOperator
function AffineDiffEqOperator(As, bs, cache = nothing)
@warn "SciMLBase.AffineDiffEqOperator is deprecated.
Use SciMLOperators.AffineOperator instead"

A = AddedOperator(As)
b = sum(bs)
B = IdentityOperator{size(b, 1)}()
AffineOperator(A, B, b)
end

const DiffEqArrayOperator = SciMLOperators.MatrixOperator
function DiffEqArrayOperator(args...; kwargs...)
@warn "SciMLBase.DiffEqArrayOperator is deprecated.
Use SciMLOperators.MatrixOperator instead"

MatrixOperator(args...; kwargs...)
end

export DiffEqScaledOperator, FactorizedDiffEqArrayOperator, DiffEqIdentity,
DiffEqScalar, AffineDiffEqOperator, DiffEqArrayOperator

# Exports
export AllObserved

Expand Down Expand Up @@ -653,10 +694,6 @@ export EnsembleAnalysis, EnsembleSummary

export tuples, intervals, TimeChoiceIterator

export AffineDiffEqOperator, DiffEqScaledOperator

export DiffEqScalar, DiffEqArrayOperator, DiffEqIdentity

export step!, deleteat!, addat!, get_tmp_cache,
full_cache, user_cache, u_cache, du_cache,
rand_cache, ratenoise_cache,
Expand All @@ -669,9 +706,6 @@ export step!, deleteat!, addat!, get_tmp_cache,
set_u!, check_error, change_t_via_interpolation!, addsteps!,
isdiscrete, reeval_internals_due_to_modification!

export update_coefficients!, update_coefficients,
has_adjoint, has_expmv!, has_expmv, has_exp, has_mul, has_mul!, has_ldiv, has_ldiv!

export ContinuousCallback, DiscreteCallback, CallbackSet, VectorContinuousCallback

end
179 changes: 0 additions & 179 deletions src/operators/basic_operators.jl

This file was deleted.

Loading