Skip to content
Discussion options

You must be logged in to vote

It looks like the issue is that you're comparing float32 arithmetic to float64 arithmetic. If I change this line:

M = jnp.mean(G, axis=0)

to this:

M = jnp.mean(G, axis=0).astype('float64')

Then I get this output:

Stable[G @ R] = True
Stable[C @ R] = True
Stable[G/S @ R] = True
Stable[Z @ R] = True
Max atol[Z @ R] = 7.105427357601002e-13
Max rtol[Z @ R] = 5.763955293994456e-13

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@davisyoshida
Comment options

@jakevdp
Comment options

@davisyoshida
Comment options

@quattro
Comment options

Answer selected by quattro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants