Hi,

there's no integer inf, but you can use np.iinfo(np.int64).max or 
np.iinfo(np.int64).min if you need an upper/lower bound for integers in 
np.max/np.min

Ciao!
Tiziano

On Tue 22 Nov, 06:27 -0000, 2601536...@qq.com wrote:
Hi, I am a student and I have very little knowledge about python and numpy, so 
my suggestion may seem really stupid.
One day I was use numpy to implement Floyd algorithm and then I found the data 
type of np.inf is float, so i can not use min or max function because other 
data type are int. So I wonder whether you can add a new inf whose data type is 
int. Thanks
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: opossumn...@gmail.com
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to