-
-
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
Towards #12251 part 2, replace all full(X) calls with convert(Array, X) and migrate tests #17079
Conversation
@@ -811,7 +811,7 @@ reference. | |||
+----------------------------------------+----------------------------------+--------------------------------------------+ | |||
| :func:`speye(n) <speye>` | :func:`eye(n) <eye>` | Creates a *n*-by-*n* identity matrix. | | |||
+----------------------------------------+----------------------------------+--------------------------------------------+ | |||
| :func:`full(S) <full>` | :func:`sparse(A) <sparse>` | Interconverts between dense | | |||
| :func:`convert(Array, S) <convert>` | :func:`sparse(A) <sparse>` | Interconverts between dense | |
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.
table alignment needs fixing
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.
Fixed. Thanks!
b928fa2
to
a937904
Compare
…ide base/sparse and base/linalg), apart from the no-op fallback for `AbstractArray`s in abstractarray.jl.
…ir and test/linalg. Migrate `full` to `convert` in some documentation.
@nanosoldier |
@test full(ss116[i,[end-3:-2:1;]]) == aa116[i,[end-3:-2:1;]] | ||
@test full(ss116[[end-3:-2:1;],j]) == aa116[[end-3:-2:1;],j] | ||
@test convert(Array, ss116[i,[3:2:end-3;]]) == aa116[i,[3:2:end-3;]] | ||
@test convert(Array, ss116[[3:2:end-3;],j]) == aa116[[3:2:end-3;],j] |
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.
It's a bad sign when your diffs get long enough that github gives up on coloring words any more. I should probably have looked at this commit-by-commit.
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.
Apologies. How should I improve this? Thanks!
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.
no action needed, what you did with splitting to multiple commits was good, I just should have reviewed in the same way. or we can complain to github to highlight more of long diffs
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels |
Travis i686 timeout unrelated? |
Thanks for the review and merge! |
This looks like it had some unintended consequences, ref JuliaStats/DataArrays.jl#208 - not sure what that was doing before, I guess specializing |
Since this isn't really critical and wasn't supposed to have visible consequences, I think we may want to revert it for now and revisit after branching 0.5? |
Sounds good! Prior to merger I assumed this was 0.6-dev material. Taking a look now at the base/abstractarray.jl code |
As One path forward would be to introduce Another path forward would be removing Thoughts? Did the |
Second step towards JuliaLang/LinearAlgebra.jl#231 (for a description of the overall objective and plan, see #17066 (comment)). This pull request replaces all
full(X)
calls withconvert(Array, X)
and accordingly migrates tests and documentation. Thanks and best!