1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

inverse uses MDIM not GDIM

This commit is contained in:
Zeno Rogue 2019-08-22 13:46:01 +02:00
parent 429909bd56
commit e0852419fc

View File

@ -755,7 +755,7 @@ void inverse_error(const transmatrix& T) {
/** inverse */
EX transmatrix inverse(const transmatrix& T) {
if(GDIM == 2) {
if(MDIM == 3) {
ld d = det(T);
transmatrix T2;
if(d == 0) {