issubdtype#
- class brainunit.math.issubdtype(a, b)#
Check if a dtype is a sub-dtype of another in the type hierarchy.
- Parameters:
- Returns:
out –
Trueif a is lower or equal in the type hierarchy to b.- Return type:
Examples
>>> import jax.numpy as jnp >>> import saiunit.math as sumath >>> sumath.issubdtype(jnp.float32, jnp.floating) True >>> sumath.issubdtype(jnp.int32, jnp.floating) False