diff --git a/matrix.cpp b/matrix.cpp index d556e8c0..e83641da 100644 --- a/matrix.cpp +++ b/matrix.cpp @@ -130,11 +130,7 @@ matrix::inverse (void) const { template matrix& matrix::invert (void) { - auto m = *this; - m.invert (); - *this = m; - - return *this; + return *this = inverse (); }