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>
|
template <typename T>
|
||||||
matrix<T>&
|
matrix<T>&
|
||||||
matrix<T>::invert (void) {
|
matrix<T>::invert (void) {
|
||||||
auto m = *this;
|
return *this = inverse ();
|
||||||
m.invert ();
|
|
||||||
*this = m;
|
|
||||||
|
|
||||||
return *this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user