pub fn native_tensor_primal_to_diag_f64(tensor: &Tensor) -> Result<Vec<f64>>
Extract the diagonal payload from a real native tensor.