From e9bf4aefc982341c106a05e1db60054bc1c5957c Mon Sep 17 00:00:00 2001 From: silenc3r Date: Thu, 28 Jun 2018 20:03:50 +0100 Subject: Fix documentation for fromfunction ```np.fromfunction(lambda i, j: 1, (3, 3), dtype=int)``` returns ```1```. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 106f0ccfe..b49a7f551 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1897,7 +1897,7 @@ def fromfunction(function, shape, **kwargs): The result of the call to `function` is passed back directly. Therefore the shape of `fromfunction` is completely determined by `function`. If `function` returns a scalar value, the shape of - `fromfunction` would match the `shape` parameter. + `fromfunction` would not match the `shape` parameter. See Also -------- -- cgit v1.2.1