summaryrefslogtreecommitdiff
path: root/src/linalg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/linalg.h')
-rw-r--r--src/linalg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linalg.h b/src/linalg.h
index 02fa17f..b1e1409 100644
--- a/src/linalg.h
+++ b/src/linalg.h
@@ -1,10 +1,14 @@
#ifndef LINALG_H_
#define LINALG_H_
+// workaround Eigen SIMD alignment problems
#ifndef __APPLE__
#define EIGEN_DONT_VECTORIZE 1
#define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT 1
#endif
+#ifdef _MSC_VER
+#define EIGEN_DONT_ALIGN
+#endif
#include <Eigen/Core>
#include <Eigen/Geometry>
contact: Jan Huwald // Impressum