diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-12-10 19:12:41 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-12-10 19:12:41 +0000 |
commit | 794a6c4511ced84c74bc8f2dd8cd8f277925a6ac (patch) | |
tree | 406d57b79c829f4ec2f3f7dfc5d28c5b7fa6daca /numpy/lib/utils.py | |
parent | 8d24b14a7eed3fba60bab462e873214cc9fa2a1f (diff) | |
download | numpy-794a6c4511ced84c74bc8f2dd8cd8f277925a6ac.tar.gz |
ENH: emit ComplexWarning when casting complex to real (addresses #1319)
Casting complex numbers to real discards the imaginary part, which may
be unexpected. For safety, emit a warning when this occurs.
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions