Detecting integer overflow in numpy ndarray

后端 未结 0 1414
后悔当初
后悔当初 2021-01-21 10:00

I want to detect overflow in integer operations of numpy ndarray. It is possible in element-wise operation.

#  no warning.
array = np.array([100_000], np.int32)
a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题