From d01e0a10382b4cb80023583f15c3264a59c1b07f Mon Sep 17 00:00:00 2001 From: jgoppert Date: Thu, 5 Nov 2015 15:44:54 -0500 Subject: [PATCH] Formatting. --- test/inverse.cpp | 6 ++++-- test/squareMatrix.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/inverse.cpp b/test/inverse.cpp index 2dd17eb9a4..5cffe7c808 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -14,10 +14,12 @@ int main() { float data[9] = {1, 2, 3, 4, 5, 6, - 7, 8, 10}; + 7, 8, 10 + }; float data_check[9] = {-0.66666667f, -1.33333333f, 1. , -0.66666667f, 3.66666667f, -2. , - 1. , -2. , 1. }; + 1. , -2. , 1. + }; SquareMatrix A(data); SquareMatrix A_I = inv(A); diff --git a/test/squareMatrix.cpp b/test/squareMatrix.cpp index 9b64d122c9..91a3f36fbd 100644 --- a/test/squareMatrix.cpp +++ b/test/squareMatrix.cpp @@ -11,7 +11,8 @@ int main() { float data[9] = {1, 2, 3, 4, 5, 6, - 7, 8, 10}; + 7, 8, 10 + }; SquareMatrix A(data); Vector3 diag_check(1, 5, 10); A.diag().T().print(); @@ -21,7 +22,8 @@ int main() float data_check[9] = { 1.01158503f, 0.02190432f, 0.03238144f, 0.04349195f, 1.05428524f, 0.06539627f, - 0.07576783f, 0.08708946f, 1.10894048f}; + 0.07576783f, 0.08708946f, 1.10894048f + }; printf("expm(A*t)\n"); float dt = 0.01f;