pub fn logical_xor(
lhs: impl AsRef<Array>,
rhs: impl AsRef<Array>,
) -> Result<Array>Expand description
Cast both operands to boolean, broadcast them, and compare for inequality.
use mlx_rs::{array, ops::logical_xor};
let output = logical_xor(array!([true, false]), array!([false, false])).unwrap();
assert_eq!(output.shape(), &[2]);