(self, condition, x=None, y=None)
| 1769 | return a |
| 1770 | |
| 1771 | def where(self, condition, x=None, y=None): |
| 1772 | if x is None and y is None: |
| 1773 | return jnp.where(condition) |
| 1774 | else: |
| 1775 | return jnp.where(condition, x, y) |
| 1776 | |
| 1777 | def copy(self, a): |
| 1778 | # No need to copy, JAX arrays are immutable |