Floating point error handling

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.

© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.11.0/reference/routines.err.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部