[dali_2.3.21] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-physics / third-party / bullet3 / src / BulletInverseDynamics / IDConfigEigen.hpp
1 ///@file Configuration for Inverse Dynamics Library with Eigen
2 #ifndef INVDYNCONFIG_EIGEN_HPP_
3 #define INVDYNCONFIG_EIGEN_HPP_
4 #define btInverseDynamics btInverseDynamicsEigen
5 #ifdef BT_USE_DOUBLE_PRECISION
6 // choose double/single precision version
7 typedef double idScalar;
8 #else
9 typedef float idScalar;
10 #endif
11
12 // use std::vector for arrays
13 #include <vector>
14 // this is to make it work with C++2003, otherwise we could do this
15 // template <typename T>
16 // using idArray = std::vector<T>;
17 template <typename T>
18 struct idArray
19 {
20         typedef std::vector<T> type;
21 };
22 typedef std::vector<int>::size_type idArrayIdx;
23 // default to standard malloc/free
24 #include <cstdlib>
25 #define ID_DECLARE_ALIGNED_ALLOCATOR() EIGEN_MAKE_ALIGNED_OPERATOR_NEW
26 // Note on interfaces:
27 // Eigen::Matrix has data(), to get c-array storage
28 // HOWEVER: default storage is column-major!
29 #define ID_LINEAR_MATH_USE_EIGEN
30 #include "Eigen/Eigen"
31 #include "details/IDEigenInterface.hpp"
32 #endif