Skip to content

Commit b6f7ed7

Browse files
author
Vahid Tavanashad
committed
address comments
1 parent 0b65c53 commit b6f7ed7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

doc/reference/logic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Logic Functions
1+
Logic functions
22
===============
33

44
.. https://numpy.org/doc/stable/reference/routines.logic.html

dpnp/dpnp_iface_functional.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def apply_along_axis(func1d, axis, arr, *args, **kwargs):
7171
for kk in ndindex(Nk):
7272
out[ii + s_[...,] + kk] = func1d(arr[ii + s_[:,] + kk])
7373
74+
For full documentation refer to :obj:`numpy.apply_along_axis`.
75+
7476
Parameters
7577
----------
7678
func1d : function (M,) -> (Nj...)
@@ -110,7 +112,7 @@ def apply_along_axis(func1d, axis, arr, *args, **kwargs):
110112
array([2., 5., 8.])
111113
112114
For a function that returns a 1D array, the number of dimensions in
113-
`outarr` is the same as `arr`.
115+
`out` is the same as `arr`.
114116
115117
>>> b = np.array([[8, 1, 7], [4, 3, 9], [5, 2, 6]])
116118
>>> np.apply_along_axis(sorted, 1, b)

tests/test_functional.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,5 @@ def test_args(self, dtype):
4444
assert_array_equal(result, expected)
4545

4646
# positional args: axis, dtype, out, keepdims
47-
expected = numpy.apply_along_axis(
48-
numpy.mean, 0, a, 0, dtype, None, True
49-
)
5047
result = dpnp.apply_along_axis(dpnp.mean, 0, ia, 0, dtype, None, True)
5148
assert_array_equal(result, expected)

0 commit comments

Comments
 (0)