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

general concatenation (cat) of sparse arrays yields dense #17680

Closed
Sacha0 opened this issue Jul 28, 2016 · 0 comments
Closed

general concatenation (cat) of sparse arrays yields dense #17680

Sacha0 opened this issue Jul 28, 2016 · 0 comments
Labels
sparse Sparse arrays types and dispatch Types, subtyping and method dispatch

Comments

@Sacha0
Copy link
Member

Sacha0 commented Jul 28, 2016

julia> cat((1,2), spdiagm(1:4), spdiagm(1:4))
8×8 Array{Int64,2}:
 1  0  0  0  0  0  0  0
 0  2  0  0  0  0  0  0
 0  0  3  0  0  0  0  0
 0  0  0  4  0  0  0  0
 0  0  0  0  1  0  0  0
 0  0  0  0  0  2  0  0
 0  0  0  0  0  0  3  0
 0  0  0  0  0  0  0  4

Cross reference #15172 and #16722. Best!

@kshyatt kshyatt added sparse Sparse arrays types and dispatch Types, subtyping and method dispatch labels Jul 28, 2016
JeffBezanson added a commit that referenced this issue Jul 29, 2016
Fix #17680 (sparse general concatenation) and #17686 (concatenation of heterogeneous Matrix-Vector combinations)
KristofferC pushed a commit that referenced this issue Jul 30, 2016
…s with sparse matrices or dense matrices/vectors yield sparse arrays (fixes #17680).
mfasi pushed a commit to mfasi/julia that referenced this issue Sep 5, 2016
…s with sparse matrices or dense matrices/vectors yield sparse arrays (fixes JuliaLang#17680).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sparse Sparse arrays types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

No branches or pull requests

2 participants