Define M_PI float, change logical and to &&

This commit is contained in:
jaredkw
2016-05-11 18:35:05 -04:00
committed by James Goppert
parent 4d33092bcb
commit 3509329f30
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -10,6 +10,10 @@
#include "math.hpp"
#ifndef M_PI
#define M_PI (3.14159265358979323846f)
#endif
namespace matrix
{
+1 -1
View File
@@ -371,7 +371,7 @@ public:
setZero();
Matrix<Type, M, N> &self = *this;
for (size_t i = 0; i < M and i < N; i++) {
for (size_t i = 0; i < M && i < N; i++) {
self(i, i) = 1;
}
}