8000 DOC: Fix for issues #7622 and #7914 · juliantaylor/numpy@8427866 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8427866

Browse files
committed
DOC: Fix for issues numpy#7622 and numpy#7914
1 parent c4f1dec commit 8427866

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

numpy/add_newdocs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,8 +1452,8 @@ def luf(lamdaexpr, *args, **kwargs):
14521452
condition : array_like, bool
14531453
When True, yield `x`, otherwise yield `y`.
14541454
x, y : array_like, optional
1455-
Values from which to choose. `x` and `y` need to have the same
1456-
shape as `condition`.
1455+
Values from which to choose. `x`, `y` and `condition` need to be
1456+
broadcastable to some shape.
14571457
14581458
Returns
14591459
-------

numpy/core/numeric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,8 +2145,8 @@ def fromfunction(function, shape, **kwargs):
21452145
The function is called with N parameters, where N is the rank of
21462146
`shape`. Each parameter represents the coordinates of the array
21472147
varying along a specific axis. For example, if `shape`
2148-
were ``(2, 2)``, then the parameters in turn be (0, 0), (0, 1),
2149-
(1, 0), (1, 1).
2148+
were ``(2, 2)``, then the parameters would be
2149+
``array([[0, 0], [1, 1]])`` and ``array([[0, 1], [0, 1]])``
21502150
shape : (N,) tuple of ints
21512151
Shape of the output array, which also determines the shape of
21522152
the coordinate arrays passed to `function`.

numpy/ma/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6958,8 +6958,8 @@ def where(condition, x=_NoValue, y=_NoValue):
69586958
The condition to meet. For each True element, yield the corresponding
69596959
element from `x`, otherwise from `y`.
69606960
x, y : array_like, optional
6961-
Values from which to choose. `x` and `y` need to have the same shape
6962-
as condition, or be broadcast-able to that shape.
6961+
Values from which to choose. `x`, `y` and `condition` need to be
6962+
broadcastable to some shape.
69636963
69646964
Returns
69656965
-------

0 commit comments

Comments
 (0)
0