W3cubDocs

/NumPy 2.4

Exceptions and Warnings

General exceptions used by NumPy. Note that some exceptions may be module specific, such as linear algebra errors.

New in version NumPy: 1.25

The exceptions module is new in NumPy 1.25.

Warnings

ComplexWarning

The warning raised when casting a complex dtype to a real dtype.

VisibleDeprecationWarning

Visible deprecation warning.

RankWarning

Matrix rank warning.

Exceptions

AxisError(axis[, ndim, msg_prefix])

Axis supplied was invalid.

DTypePromotionError

Multiple DTypes could not be converted to a common one.

TooHardError

max_work was exceeded.

© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/routines.exceptions.html