diff options
author | silenc3r <dawid.zych@yandex.com> | 2018-06-28 20:03:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 20:03:50 +0100 |
commit | e9bf4aefc982341c106a05e1db60054bc1c5957c (patch) | |
tree | 1905bc7eeb23ce45b231558eb1275bafd6d9a79e /numpy/core/numeric.py | |
parent | a9b01a2d24aa3aa5c523df6b97467db1c92607d4 (diff) | |
download | numpy-e9bf4aefc982341c106a05e1db60054bc1c5957c.tar.gz |
Fix documentation for fromfunction
```np.fromfunction(lambda i, j: 1, (3, 3), dtype=int)``` returns ```1```.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 -------- |