diff options
author | Juan Luis Cano RodrÃguez <juanlu001@gmail.com> | 2014-06-07 21:52:29 +0200 |
---|---|---|
committer | Juan Luis Cano RodrÃguez <juanlu001@gmail.com> | 2014-06-08 15:40:23 +0200 |
commit | 292b9ff538ea4950c7380c76cf65d1a5b108b75c (patch) | |
tree | 2f1876657ae20298c217e9787e86857f9abd213b /numpy/core/function_base.py | |
parent | db710cefeecf51d6253e421712726c1506a6f65b (diff) | |
download | numpy-292b9ff538ea4950c7380c76cf65d1a5b108b75c.tar.gz |
BUG: Fixed piecewise function for 0d input
When `x` has more than one element the condlist `[True, False]`
is being made equivalent to `[[True, False]]`, which is correct.
However, when `x` is zero dimensional the expected condlist is
`[[True], [False]]`: this commit addresses the issue. Besides,
the documentation stated that there could be undefined values
but actually these are 0 by default: using `nan` would be desirable,
but for the moment the docs were corrected. Closes #331.
Diffstat (limited to 'numpy/core/function_base.py')
0 files changed, 0 insertions, 0 deletions