pub fn broadcast_array_div(
lhs: impl Into<ArrayV>,
rhs: impl Into<ArrayV>,
null_mask: Option<&Bitmask>,
) -> Result<Array, MinarrowError>Expand description
Broadcast division: lhs / rhs with automatic scalar expansion.
If one operand has length 1 and the other has length N, the scalar operand will be broadcast (repeated) to match the array operand’s length.
§Examples
- Array / Scalar:
[10, 20, 30] / [2] = [5, 10, 15] - Scalar / Array:
[100] / [2, 4, 5] = [50, 25, 20] - Array / Array:
[10, 20, 30] / [2, 4, 5] = [5, 5, 6]
§Errors
- Returns
KernelError::LengthMismatchif lengths are incompatible - Returns
KernelError::UnsupportedTypefor unsupported type combinations - Returns
KernelError::DivideByZerofor division by zero (integer arrays)