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

fix spdiagm to promote all the element types #10590

Merged
merged 1 commit into from
Mar 21, 2015

Conversation

stevengj
Copy link
Member

Previously, spdiagm(B, ...) was just using the eltype of B[1], rather than promoting all of the eltypes. I noticed this today when I tried to create a sparse matrix where one diagonal was real and another was complex, and it threw an InexactError. (cc @oskooi)

@ViralBShah
Copy link
Member

Failure is unrelated.

@ViralBShah ViralBShah added the sparse Sparse arrays label Mar 21, 2015
ViralBShah added a commit that referenced this pull request Mar 21, 2015
fix spdiagm to promote all the element types
@ViralBShah ViralBShah merged commit 7d433e8 into JuliaLang:master Mar 21, 2015
stevengj added a commit that referenced this pull request Mar 22, 2015
…the first element type

(cherry picked from commit c3cc302)
ref PR #10590
@tkelman
Copy link
Contributor

tkelman commented Mar 22, 2015

I usually like to have things on master for a little longer before backporting them, but all sorts of things are broken on 0.4 right now and this seems harmless enough. Backported in 9cc3666

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.

3 participants