-
-
Notifications
You must be signed in to change notification settings - Fork 224
fix: fix values being promoted to Float64
in problem construction
#3561
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
Merged
AayushSabharwal
merged 24 commits into
SciML:master
from
AayushSabharwal:as/initial-promote
Apr 16, 2025
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
50f932f
fix: use `Float16` zero default for `Initial` parameters
AayushSabharwal 0305c9d
test: test `Float32` values retained in problem construction
AayushSabharwal bcaa869
Update src/systems/abstractsystem.jl
ChrisRackauckas 65a326d
Update src/systems/abstractsystem.jl
ChrisRackauckas aa7f38b
fix: fix type promotion in `MTKParameters` constructor
AayushSabharwal 227a0d8
fix: use `Bool(0)` for `default_dd_guess`
AayushSabharwal b228fd9
fix: promote integer valued reals to `Float16`
AayushSabharwal c814779
feat: allow specifying `eltype` of numeric buffer in `better_varmap_t…
AayushSabharwal a8d59d6
feat: allow specifying floating point type in `get_temporary_value`
AayushSabharwal 742146e
refactor: remove `zero_var`
AayushSabharwal fb1fb93
refactor: determine floating point type earlier and propagate
AayushSabharwal 59c6b31
refactor: remove type-promotion hack in `InitializationProblem`
AayushSabharwal 27e7efb
fix: use `remake` to promote intialization problem
AayushSabharwal 8d2482c
fix: fix `symconvert`
AayushSabharwal 38724b2
fix: allow specifying floating point type in `MTKParameters`
AayushSabharwal 57d7da1
Revert "fix: use `remake` to promote intialization problem"
AayushSabharwal 9e6e894
fix: use `remake_initialization_data` to promote the initialization p…
AayushSabharwal 662217b
fix: promote initializeprob in `remake_initialization_data`
AayushSabharwal f9cdd16
fix: respect `floatT` in `maybe_build_initialization_problem`
AayushSabharwal 9fe7586
fix: respect `tofloat` when using `floatT`, default to not promoting
AayushSabharwal a8e2495
fix: do not require `isconcretetype` when discovering `floatT`
AayushSabharwal 6023efb
refactor: add `float_type_from_varmap`
AayushSabharwal ead8682
fix: infer `floatT` in `MTKParameters` constructor if not provided
AayushSabharwal cd19c7e
fix: infer `floatT` in `remake_initialization_data`
AayushSabharwal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false
makes the kwarg seem like a flag, when it is actually a value. So I opted forBool(0)
just to make it clearer.