Verified Commit 92fece33 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: include Eigen extensions before the rest

This is to avoid a compilation issues on Windows systems
parent fe30e823
......@@ -18,9 +18,12 @@ namespace pinocchio {}
#include "pinocchio/container/boost-container-limits.hpp"
// Import Eigen and all the required modules
#include <Eigen/Core>
#include "pinocchio/eigen-macros.hpp"
#ifdef PINOCCHIO_WITH_EIGEN_TENSOR_MODULE
#include <unsupported/Eigen/CXX11/Tensor>
#endif
#include "pinocchio/core/binary-op.hpp"
#include "pinocchio/core/unary-op.hpp"
......
......@@ -11,9 +11,7 @@
#define EIGEN_DEVICE_FUNC
#endif
#ifdef PINOCCHIO_WITH_EIGEN_TENSOR_MODULE
#include <unsupported/Eigen/CXX11/Tensor>
#else
#ifndef PINOCCHIO_WITH_EIGEN_TENSOR_MODULE
#if (__cplusplus <= 199711L && EIGEN_COMP_MSVC < 1900) || defined(__CUDACC__) || defined(EIGEN_AVOID_STL_ARRAY)
namespace Eigen {
template <typename T, std::size_t n>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment