Skip to content

Commit

Permalink
support eigen 3.3.7 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Jan 31, 2024
1 parent bef286c commit 901be20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ jobs:
run: echo "HIDDEN=$(python3 -c "import os; print(os.devnull)")" >> $GITHUB_ENV

- name: Install pybind11
run: |
git clone https://github.com/pybind/pybind11.git
cd pybind11
git checkout v2.11.1
run: git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git

- name: Install valgrind
if: matrix.os == 'ubuntu-latest'
Expand Down
4 changes: 2 additions & 2 deletions include/ruckig/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ template<class T, size_t DOFs, size_t SIZE> using StandardSizeVector = typename

//! Vector data type based on the Eigen matrix type. Eigen needs to be included seperately
#ifdef EIGEN_VERSION_AT_LEAST
#if EIGEN_VERSION_AT_LEAST(3,4,0)
template<class T, size_t DOFs> using EigenVector = typename std::conditional<DOFs >= 1, Eigen::Vector<T, DOFs>, Eigen::Vector<T, Eigen::Dynamic>>::type;
#if EIGEN_VERSION_AT_LEAST(3,3,7)
template<class T, size_t DOFs> using EigenVector = typename std::conditional<DOFs >= 1, Eigen::Matrix<T, DOFs, 1>, Eigen::Matrix<T, Eigen::Dynamic, 1>>::type;
#endif
#endif

Expand Down

0 comments on commit 901be20

Please sign in to comment.