is_int#
- class saiunit.math.is_int(array)#
Check if the array has an integer dtype.
- Parameters:
array (array_like or Quantity) – The input array.
- Returns:
out –
Trueif the array dtype is an integer type.- Return type:
Examples
>>> import jax.numpy as jnp >>> import saiunit.math as sumath >>> sumath.is_int(jnp.array([1])) True >>> sumath.is_int(jnp.array([1.0])) False