-
Notifications
You must be signed in to change notification settings - Fork 40
Release 1.0 #231
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
Release 1.0 #231
Conversation
I'm thinking of removing |
It’s used all over the place, eg |
Note the multiplicative identity is definitely as fundamental as the additive identity, so if there’s a role for Zeros then there’s also one for Ones |
|
|
#223 is the only thing on my wishlist atm |
Perhaps we should add a |
Basically #94 |
No because it’s important in places like LazyArrays simplify that multiplication by Eye is a no-op. If it were a general Fill then it becomes a multiplication. also, it’s necessary that |
Sounds good! That's not even a breaking change so can be merged before 1.0 |
Do you mean just for It's pretty easy to just add those and see if any ambiguities arise downstream. |
Toeplitz actually |
* Structured Broadcasting * add jishnubs tests * Update runtests.jl
Codecov Report
@@ Coverage Diff @@
## master #231 +/- ##
===========================================
+ Coverage 99.04% 100.00% +0.95%
===========================================
Files 4 5 +1
Lines 630 649 +19
===========================================
+ Hits 624 649 +25
+ Misses 6 0 -6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I think the simple way to handle that is add FillArrays.jl as a dependency to ToeplitzMatrices.jl and add the overloads there |
That doesn't quite make sense unless there are other interactions between them. I would write a function in my script if I have to use it. On the other hand, the issue was caused by fixing the incompatibility with StaticArrays, so adding StaticArrays to FillArrays would be easier since it would allow |
It wasn't only StaticArrays, e.g. LazyArrays was also impacted, and I'm guessing other packages that overload |
Looks like StaticArrays and LazyArrays have ambiguity as well? "Glue" mini packages could work, since to avoid the ambiguities, both packages should think of which method is better and be set prior. As for Julia 1.9 we might have like "Intercompatibility.jl" to focuse on resolving ambiguities. julia> x = Vcat(1:2)
vcat(2-element UnitRange{Int64}):
1
2
julia> y = SVector(1,2)
2-element SVector{2, Int64} with indices SOneTo(2):
1
2
julia> x+y
ERROR: MethodError: +(::ApplyArray{Int64, 1, typeof(vcat), Tuple{UnitRange{Int64}}}, ::SVector{2, Int64}) is ambiguous. Candidates:
+(a::AbstractArray, b::StaticArray) in StaticArrays at C:\Users\pty\.julia\packages\StaticArrays\a4r2v\src\linalg.jl:13
+(A::Vcat, B::AbstractArray) in LazyArrays at C:\Users\pty\.julia\packages\LazyArrays\VJHIG\src\lazyconcat.jl:628
Possible fix, define
+(::Vcat, ::StaticArray)
Stacktrace:
[1] top-level scope
@ REPL[35]:1 |
LazyArrays depends on StaticArrays already so no need for a glue package, just fix those ambiguities in Julia. The Vcat example is another case that could be done at the broadcast level but that takes a significant amount of thought |
Let a slice of |
I wonder if Requires.jl can fix the ambiguities. |
A made a draft PR: #238 But on second thought: this behaviour could be true for all |
I didn't know |
Codecov is 💯 🎉 The perfect package 😂 |
I'm going through my packages and updating them, to make sure no more issues come up. Once this is done (say tomorrow) I'll tag. |
* Update fillalgebra.jl * promote_op * add breaking test * add breaking test * fix * accept round-off errors * Update test/runtests.jl Co-authored-by: Sheehan Olver <[email protected]> * update * support inf and nan * fix 1.6 * Update fillalgebra.jl * Update fillalgebra.jl * trying to fix Julia 1.6 * comments * Update runtests.jl * add @inferred --------- Co-authored-by: Sheehan Olver <[email protected]>
Planning the next version to be v1.0. So lets get any last minute breaking changes merged into this branch.
@jishnub @putianyi889 Let me know what you want to include. I don't think we'll add a "size" template variable for now (that can be 2.0) so just looking for more minor PRs.