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

dropped type tag #466

Closed
mjakl opened this issue Feb 26, 2012 · 3 comments
Closed

dropped type tag #466

mjakl opened this issue Feb 26, 2012 · 3 comments
Assignees
Labels
kind:bug Indicates an unexpected problem or unintended behavior status:priority This should be addressed urgently

Comments

@mjakl
Copy link

mjakl commented Feb 26, 2012

Consider the example in https://gist.github.com/1916540, when I run it, I get the following output:
Returning: 24.186773244895647
Got: 4627501189117941816

Uncommenting line 31 (clusterError = clusterError) gives the following output:
Returning: 24.186773244895647
Got: 24.186773244895647

It seems that Julia somewhere loses track of the clusterError return value used in line 29.

I've reduced the example in https://gist.github.com/1916540 as much as possible, so the code itself is awkward and not very useful, but captures the problem.

I've tried the example on the provided Mac OS X build (Commit a9647ab (2012-02-20 12:10:02))

@ghost ghost assigned JeffBezanson Feb 26, 2012
@JeffBezanson
Copy link
Sponsor Member

4627501189117941816 is the value of the binary representation of 24.186773244895647, so it looks like the compiler is dropping a type somehow.

@JeffBezanson
Copy link
Sponsor Member

This seems to work for me now; at the rate we're going 2/20 is pretty old now. Do you have the ability to build from source to try this with the latest version? If not, hopefully we'll update the binaries soon and you can try it again then.

@mjakl mjakl closed this as completed Mar 3, 2012
@mjakl
Copy link
Author

mjakl commented Mar 3, 2012

At least on Linux the bug seems fixed. I haven't got everything set up to compile Julia on Mac OS X right now, but if there is a new binary distribution I'll verify it.
Thanks! Closing for now.

StefanKarpinski pushed a commit that referenced this issue Feb 8, 2018
cmcaine pushed a commit to cmcaine/julia that referenced this issue Nov 11, 2022
Keno pushed a commit that referenced this issue Oct 9, 2023
ViralBShah pushed a commit that referenced this issue Nov 9, 2023
Stdlib: SparseArrays
URL: https://github.com/JuliaSparse/SparseArrays.jl.git
Stdlib branch: main
Julia branch: master
Old commit: 3582898
New commit: 37fc321
Julia version: 1.11.0-DEV
SparseArrays version: 1.11.0
Bump invoked by: @ViralBShah
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaSparse/SparseArrays.jl@3582898...37fc321

```
$ git log --oneline 3582898..37fc321
37fc321 test: relax allocated tests (#468)
bd2bda8 replace ind2sub/sub2ind by CartesianIndices/LinearIndices (#451)
7897f1f test: somewhat more permissive test_throws message (#466)
911cf6a `reverse` for sparse vector/matrix (#450)
713a260 Define algebraic operators for SparseMatrixCSCView (#458)
f455a8e Add messages to DimensionMismatch errors (#461)
81fc6f3 Aggressive constprop in sparse * dense (#460)
0b36fdd fix h/vcat invoke dispatch arguments (#464)
6b23902 Add Finch to list of External Julia Sparse Array Libraries (#462)
```

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior status:priority This should be addressed urgently
Projects
None yet
Development

No branches or pull requests

2 participants