[Numpy-discussion] simpliest way to check: array x is float, not integer

dmitrey openopt@ukr....
Sun Apr 29 05:51:17 CDT 2007


hi all,
please inform me what is the simplest way to check, does the vector x 
that came to my func is float or integer. I.e. someone can pass to my 
func for example x0 = numpy.array([1, 0, 0]) and it can yield wrong 
unexpected results vs numpy.array([1.0, 0, 0]) .
Thx, D.




More information about the Numpy-discussion mailing list