File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ def apply_numpy_func( # type: ignore[no-any-explicit]
3939 ** kwargs : Any ,
4040) -> tuple [Array , ...]:
4141 """
42- Apply a function that operates on NumPY arrays to any Array API compliant arrays,
43- as long as you can apply ``np.asarray`` to them.
42+ Apply a function that operates on NumPY arrays to Array API compliant arrays.
4443
4544 Parameters
4645 ----------
@@ -52,7 +51,9 @@ def apply_numpy_func( # type: ignore[no-any-explicit]
5251 It must be a pure function, i.e. without side effects such as disk output,
5352 as depending on the backend it may be executed more than once.
5453 *args : Array
55- One or more Array API compliant arrays.
54+ One or more Array API compliant arrays. You need to be able to apply
55+ ``np.asarray()`` to them to convert them to numpy; read notes below about
56+ specific backends.
5657 shapes : Sequence[tuple[int, ...]], optional
5758 Sequence of output shapes, one for each output of `func`.
5859 If `func` returns a single (non-sequence) output, this must be a sequence
You can’t perform that action at this time.
0 commit comments