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

Add an assumptions mechanism for type-stable default help, and nonsquare #187

Merged
merged 13 commits into from
Aug 28, 2022

Conversation

ChrisRackauckas
Copy link
Member

Fixes #177

src/default.jl Outdated Show resolved Hide resolved
alg = GenericFactorization()
function defaultalg(A, b, ::OperatorAssumptions{nothing})
issquare = size(A, 1) == size(A, 2)
defaultalg(A, b, OperatorAssumptions(Val(issquare)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems type unstable. Is that intentional, or does Julia always union split here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to have some point where a type choice is made, because then it sets the algorithm type. Things like the ODE solver would just set the assumptions at the type level.

@codecov
Copy link

codecov bot commented Aug 27, 2022

Codecov Report

Merging #187 (52f5da5) into main (ec2dfad) will decrease coverage by 1.31%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #187      +/-   ##
==========================================
- Coverage   65.24%   63.92%   -1.32%     
==========================================
  Files           9        9              
  Lines         656      621      -35     
==========================================
- Hits          428      397      -31     
+ Misses        228      224       -4     
Impacted Files Coverage Δ
src/simplelu.jl 0.00% <0.00%> (ø)
src/default.jl 48.43% <43.63%> (-15.72%) ⬇️
src/factorization.jl 82.08% <50.00%> (ø)
src/common.jl 84.21% <87.50%> (+0.21%) ⬆️
src/iterative_wrappers.jl 69.39% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ChrisRackauckas ChrisRackauckas merged commit 283cd23 into main Aug 28, 2022
@ChrisRackauckas ChrisRackauckas deleted the assumptions branch August 28, 2022 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LinearSolve default handling for non-square
2 participants