Skip to content

Commit

Permalink
feat: select (#34)
Browse files Browse the repository at this point in the history
* feat: select
* feat: numpy.power

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman authored Mar 20, 2024
1 parent 0591ebc commit 4ccca52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/quaxed/lax.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
"erf",
"erfc",
"erf_inv",
"select",
]


from jax import lax
from quax import quaxify

Expand All @@ -28,3 +30,4 @@
erf = quaxify(lax.erf)
erfc = quaxify(lax.erfc)
erf_inv = quaxify(lax.erf_inv)
select = quaxify(lax.select)
2 changes: 2 additions & 0 deletions src/quaxed/numpy/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"isclose",
"matmul",
"moveaxis",
"power",
"squeeze",
"trace",
"vectorize",
Expand Down Expand Up @@ -68,6 +69,7 @@ def transfer_doc(func: T) -> T:
isclose = quaxify(jnp.isclose)
matmul = quaxify(jnp.matmul)
moveaxis = quaxify(jnp.moveaxis)
power = quaxify(jnp.power)
squeeze = quaxify(jnp.squeeze)
trace = quaxify(jnp.trace)

Expand Down

0 comments on commit 4ccca52

Please sign in to comment.