Skip to content
fn

one_element_variance

::mlx::core::array one_element_variance(const ::mlx::core::array & x, int ddof, int out_dt)

The one-element variance: x - x is +0, or NaN for an infinity or NaN, and flushes as the widened var does; with ddof >= 1 the divisor 1 - ddof leaves only NaN.