From 08f26a7e3acee768f0c13668b9789f521ccda2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 27 Aug 2012 00:03:16 +0200 Subject: [PATCH] Oops, premature refactoring. RectangularMatrix doesn't have ones on diagonal by default. --- src/Math/Algorithms/Test/GaussJordanTest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Math/Algorithms/Test/GaussJordanTest.cpp b/src/Math/Algorithms/Test/GaussJordanTest.cpp index 51e36d89d..5a13365df 100644 --- a/src/Math/Algorithms/Test/GaussJordanTest.cpp +++ b/src/Math/Algorithms/Test/GaussJordanTest.cpp @@ -16,12 +16,13 @@ #include "GaussJordanTest.h" #include "Math/Algorithms/GaussJordan.h" +#include "Math/Matrix.h" CORRADE_TEST_MAIN(Magnum::Math::Algorithms::Test::GaussJordanTest) namespace Magnum { namespace Math { namespace Algorithms { namespace Test { -typedef RectangularMatrix<4, 4, float> Matrix4; +typedef Matrix<4, float> Matrix4; GaussJordanTest::GaussJordanTest() { addTests(&GaussJordanTest::singular, @@ -50,7 +51,7 @@ void GaussJordanTest::invert() { 259/412.0f, -185/206.0f, 31/412.0f, 27/206.0f); Matrix4 a2(a); - Matrix4 inverse; + Matrix4 inverse(Matrix4::Identity); CORRADE_VERIFY(GaussJordan::inPlace(a2, inverse)); CORRADE_COMPARE(inverse, expectedInverse);