bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / exceptions / ComplexWarning
class
numpy.exceptions:ComplexWarning
source: build-install/usr/lib/python3.14/site-packages/numpy/exceptions.py :47
Summary
The warning raised when casting a complex dtype to a real dtype.
Extended Summary
As implemented, casting a complex number to a real discards its imaginary part, but this behavior may not be what the user actually wants.
Aliases
-
numpy.exceptions.ComplexWarning