add braces around statements and cleanup formatting (#107)

This commit is contained in:
Daniel Agar
2019-11-13 10:41:38 -08:00
committed by Julian Kent
parent 38e966cea1
commit cd185c995b
2 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ public:
inline SquareMatrix<Type, M> I() const
{
SquareMatrix<Type, M> i;
if(inv(*this, i)) {
if (inv(*this, i)) {
return i;
} else {
i.setZero();
@@ -289,7 +289,7 @@ template<typename Type, size_t M>
SquareMatrix<Type, M> inv(const SquareMatrix<Type, M> & A)
{
SquareMatrix<Type, M> i;
if(inv(A, i)) {
if (inv(A, i)) {
return i;
} else {
i.setZero();