-
I have a question regarding the calculation of a pseudo determinant using
results in
But in
results in
And the difference is quite significant.
results in
Any ideas where this difference stems from ? Due to float32 ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What backend are you running this on, and what version of JAX are you using? I tried running your code on both a Colab CPU and Colab T4 GPU runtime, with X64 both True and False, and in all cases the JAX code results in |
Beta Was this translation helpful? Give feedback.
I tried running your code with JAX 0.4.12 on a CPU, and the output both on Colab and my OSX laptop is
Array([ True], dtype=bool)
.Given that, I suspect the difference may have to do with the linear algebra libraries (BLAS/LAPACK) that you have installed. On a CPU, JAX uses the same lapack libraries as scipy. Which scipy version do you have installed? And do you have any particular lapack version installed (e.g. if you're using anaconda, you probably have lapack from MKL)?