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

Single precision matrix inversion is not reproducible in Squeak on MacOSX #1

Open
nicolas-cellier-aka-nice opened this issue Mar 8, 2017 · 0 comments

Comments

@nicolas-cellier-aka-nice
Copy link
Owner

Try this snippet:

(10 to: 100) detect: [:k |
    a := LapackSGEMatrix rows: k columns: k.
    a fillRandUniform.
    x := ((1 to: 100) collect: [:i | a reciprocal]) asSet asArray.
    x size > 1]

It will answer 32 on MacOSX in Squeak/Pharo (and I got 68 in 32 bits Visualworks 7.7nc).
This is due to Accelerate.framework library itself: it may return different results for different data alignments.

See http://smallissimo.blogspot.fr/2017/03/chasing-smallapack-inversion-bug.html for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant