Text of numpy.org › doc › stable › reference › generated › numpy.exceptions.ComplexWarning.html as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

numpy.exceptions.ComplexWarning — NumPy v2.5 Manual

Skip to main content GitHub numpy.exceptions.ComplexWarning # exception exceptions. ComplexWarning [source] # The warning raised when casting a complex dtype to a real dtype. As implemented, casting a complex number to a real discards its imaginary part, but this behavior may not be what the user actually wants. On this page