pub const fn trace(_matrix: &ArrayView2<'_, f64>) -> Result<f64, String>
Fallback matrix trace calculation