left_shift#
- class saiunit.math.left_shift(x, y, **kwargs)#
Shift the bits of an integer to the left, element-wise.
Both inputs must be dimensionless.
- Parameters:
- Returns:
out – Element-wise left shift.
- Return type:
Array
Examples
>>> import saiunit as u >>> import jax.numpy as jnp >>> u.math.left_shift(jnp.array([1, 2]), jnp.array([1, 2])) Array([2, 8], dtype=int32)