Skip to content

Conversation

@eschnett
Copy link
Contributor

@eschnett eschnett commented Nov 5, 2020

Closes #38209.

@eschnett eschnett force-pushed the eschnett/sparse-constructors branch from 8611b7f to 25f7e3e Compare November 5, 2020 18:22
@dkarrasch dkarrasch added the sparse Sparse arrays label Nov 5, 2020
@oscardssmith
Copy link
Member

It seems to me like we could go for a more generic approach to this fix, where we have 1 constructor for all matrices they just iterates over and fills nnz values.

@eschnett
Copy link
Contributor Author

eschnett commented Nov 5, 2020

@oscardssmith How do you iterate over the non-zero values? These constructors take (bi-,tri-)diagonal matrices as input. Is there a generic way to iterate over their nonzero values?

@eschnett
Copy link
Contributor Author

eschnett commented Nov 5, 2020

Test failures are unrealated.

@oscardssmith
Copy link
Member

Never mind on this. I thought this was a generic interface we had, but we only have it for SparseMatrix and SparseVector. IMO we should add methods to findnz as it would be a really useful generic interface, but that's definitely out of scope for this PR.

@dkarrasch dkarrasch merged commit 1adcaff into JuliaLang:master Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sparse Sparse arrays

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sparse hvcat with adjoints is very slow (orders of magnitude)

3 participants