Skip to content
Discussion options

You must be logged in to vote

I don't entirely understand the motivation for your gnool_jit, but within a jit-compiled function, the result of something like x_model = r_model * np.cos(theta_d) is not an array, it is a tracer. When you pass this tracer to a function that expects it to be a static array, the result will probably not work as expected.

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@srijaniiserprinceton
Comment options

@jakevdp
Comment options

@srijaniiserprinceton
Comment options

@srijaniiserprinceton
Comment options

@jakevdp
Comment options

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