Skip to content
fn

truth_operand

::mlx::core::array truth_operand(const ::mlx::core::array & x)

What a logical reduction reads for x: its truth when it is complex, which MLX's reductions judge by the real part alone; x otherwise.