Skip to content

Commit

Permalink
appease formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Nov 17, 2024
1 parent 59f1428 commit 4e5c0d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/array_api_extra/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,5 +429,7 @@ def sinc(x: Array, /, *, xp: ModuleType) -> Array:
err_msg = "`x` must have a real floating data type."
raise ValueError(err_msg)
# no scalars in `where` - array-api#807
y = xp.pi * xp.where(x, x, xp.asarray(xp.finfo(x.dtype).smallest_normal, dtype=x.dtype))
y = xp.pi * xp.where(
x, x, xp.asarray(xp.finfo(x.dtype).smallest_normal, dtype=x.dtype)
)
return xp.sin(y) / y

0 comments on commit 4e5c0d8

Please sign in to comment.