| |
- is_numeric_float(*arrays)
- Function to test whether a variable(s) is a Numeric floating
point array (of any supported precision).
If any of the input arrays are not Numeric arrays, or if any of
the input arrays are not floating, return false. If all arrays
are floating and Numeric return true.
"Floating" is defined as any one of the following Numeric
floating attributes: Float, Float0, Float8, Float16, Float32,
Float64.
Method Arguments:
* *arrays: Any number of array arguments. All in the parameter
list must be Numeric floating point arrays for function to
return true.
Example:
>>> import is_numeric_float
>>> a = [1., 2., 3.]
>>> print is_numeric_float.is_numeric_float(a)
0
>>> import Numeric as N
>>> a = N.array([1., 2., 3.])
>>> a.typecode()
'd'
>>> b = N.array([11., -52., 9., 39.])
>>> print is_numeric_float.is_numeric_float(a,b)
1
|