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