matrix: avoid infinite recursion in invert
This commit is contained in:
parent
29663140e0
commit
c41b58b47d
@ -130,11 +130,7 @@ matrix<T>::inverse (void) const {
|
||||
template <typename T>
|
||||
matrix<T>&
|
||||
matrix<T>::invert (void) {
|
||||
auto m = *this;
|
||||
m.invert ();
|
||||
*this = m;
|
||||
|
||||
return *this;
|
||||
return *this = inverse ();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user