Converts given \(a\) variable to ndarray using given type.
a (object) – Variable to convert.
dtype (object) – Type to use for conversion, default to the type defined by the colour.constant.DEFAULT_INT_DTYPE attribute.
colour.constant.DEFAULT_INT_DTYPE
\(a\) variable converted to ndarray.
ndarray
Examples
>>> as_int_array([1.0, 2.0, 3.0]) array([1, 2, 3]...)