Skip to content

Float 32 vs Float 64

Hajime Kawahara edited this page Aug 24, 2021 · 3 revisions

How to use double-precision

For instance, add

from jax.config import config                                                  
config.update("jax_enable_x64", True)

But, when using F64, XLA is not available.

See here for more detail.

Comparison between F32 and F64

erfcx

F32

F32_erfcx

F64

F64_erfcx

hjert

F32

F32_hjert

F64

F64_hjert

trans2E3

F32

F32_hjert

F64

F64_hjert