piecewise output same type as input #17178
Answered
by
jakevdp
hongwanliu
asked this question in
General
-
Why does piecewise require the output to be the same as the input? |
Beta Was this translation helpful? Give feedback.
Answered by
jakevdp
Aug 18, 2023
Replies: 1 comment 8 replies
-
It's an implementation detail: the issue is that all functions in Is this something that is blocking your use-case? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regarding the Zeta function, we just merged #17144 which should make things much better.
That aside, I can understand why the current casting behavior of
jnp.piecewise
is not ideal. I'll look into changing that.