is_int

Contents

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:

outTrue if the array dtype is an integer type.

Return type:

bool

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