Skip to content
fn

out_of_range_fill

::mlx::core::array out_of_range_fill(int dt)

What a gather answers at an out-of-range position. A floating or complex result gets NaN, which no real lookup returns. An integer or bool result gets 0.