get_promote_dtypes#
- class saiunit.math.get_promote_dtypes(*args, **kwargs)#
Promote the data types of the inputs to a common type.
- Parameters:
*args (saiunit.Quantity |
Array|ndarray|bool|number|bool|int|float|complex) – The arrays whose dtypes should be promoted.- Returns:
promoted – The promoted common dtype.
- Return type:
saiunit.Quantity |
Array|Sequence[saiunit.Quantity |Array]
Examples
>>> import saiunit as u >>> import jax.numpy as jnp >>> u.math.get_promote_dtypes(jnp.float32, jnp.int32) dtype('float32')