Skip to main content

exact_inv_4x4

Function exact_inv_4x4 

Source
pub fn exact_inv_4x4(m: &Matrix4<Complex<f64>>) -> Option<Matrix4<Complex<f64>>>
Expand description

Inverse of a 4x4 complex matrix via the closed-form adjugate.

§Parameters

  • m: matrix to invert.

§Returns

None when the analytic determinant magnitude falls below f64::EPSILON**2 (upstream pyGTM falls back to pinv there).