-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Define and export SubVector and SubMatrix aliases #50537
base: master
Are you sure you want to change the base?
Conversation
Why are the indices necessarily unitranges? |
No good reason. Fixed, thanks. |
I imagine we might also want |
ec646a5
to
c9c495f
Compare
It's unclear to me why the following test fails on x86_64-apple-darwin. @jishnub - any ideas? Thanks. Error During Test at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/julia-1dd6dbeea0/share/julia/test/abstractarray.jl:762
| Test threw exception
| Expression: #= /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/julia-1dd6dbeea0/share/julia/test/abstractarray.jl:762 =# @inferred(cat3v(As)) == zeros(2, 2, 2)
| return type Array{Float64, 3} does not match inferred return type Array{_A, 3} where _A |
That's a known issue, and unrelated to this PR #50550 |
Doctests need updating. |
Good catch, thanks. Done. |
My only hesitation here is that this changes printing and will cause some doctest churn throughout the ecosystem — will the nicety here be worth the extra collective effort it will entail? This search ( |
SubVector
is aSubArray
with dimensionality of 1