-
Notifications
You must be signed in to change notification settings - Fork 34
Special case blocks
for non-blocked arrays
#474
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #474 +/- ##
==========================================
+ Coverage 93.81% 94.07% +0.26%
==========================================
Files 19 19
Lines 1761 1772 +11
==========================================
+ Hits 1652 1667 +15
+ Misses 109 105 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The conflicts need to be resolved. |
I'll add more tests for the missing lines. |
I'm not convinced the added complexity in the code is worth it. Also, why not just use |
I also wish we could avoid it, but unfortunately in some cases
The issue is the definition of julia> A = randn(2, 2)
2×2 Matrix{Float64}:
-1.02513 0.497601
0.723849 -0.255301
julia> B = fill(A, ntuple(one, ndims(A)))
1×1 Matrix{Matrix{Float64}}:
[-1.0251267250499947 0.4976007776562032; 0.7238493487560987 -0.25530073591274616]
julia> B[1, 1]
2×2 Matrix{Float64}:
-1.02513 0.497601
0.723849 -0.255301
julia> B[1, 1] = randn(4, 4)
4×4 Matrix{Float64}:
-2.21523 1.72294 0.348749 -0.793305
0.762541 0.979422 -0.193424 -0.217467
1.92247 0.501233 -0.445871 1.352
-0.977946 -0.0563409 -0.160537 -0.714262
julia> B[1, 1]
4×4 Matrix{Float64}:
-2.21523 1.72294 0.348749 -0.793305
0.762541 0.979422 -0.193424 -0.217467
1.92247 0.501233 -0.445871 1.352
-0.977946 -0.0563409 -0.160537 -0.714262 i.e. it doesn't really act as a view into the block data in the same way |
Closes #403.