NumPy

Floating point error handlingΒΆ

Setting and getting error handlingΒΆ

seterr([all, divide, over, under, invalid])

Set how floating-point errors are handled.

geterr()

Get the current way of handling floating-point errors.

seterrcall(func)

Set the floating-point error callback function or log object.

geterrcall()

Return the current callback function used on floating-point errors.

errstate(**kwargs)

Context manager for floating-point error handling.

Internal functionsΒΆ

seterrobj(errobj)

Set the object that defines floating-point error handling.

geterrobj()

Return the current object that defines floating-point error handling.