Skip to content
Snippets Groups Projects
Unverified Commit 04e3c68a authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #349 from jcarpent/devel

Enable scalar template specialization
parents f858aef5 65735544
No related branches found
No related tags found
No related merge requests found
Pipeline #26044 passed with warnings
Subproject commit 4bf6c7fc970aa5ef35627f2c7cca79eb9275bec8
Subproject commit 9296127f1fdfba0e34f3d0ecb6cb23ee220aa02a
FROM ubuntu:22.04
RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -qqy \
build-essential \
cmake \
cmake-curses-gui \
vim \
gdb \
git \
libboost-all-dev \
libeigen3-dev \
liburdfdom-dev \
python3-numpy
WORKDIR /src
RUN git clone --recursive -j2 -b devel https://github.com/stack-of-tasks/eigenpy
ENV CTEST_OUTPUT_ON_FAILURE=ON
ENV CTEST_PROGRESS_OUTPUT=ON
ENV CTEST_PARALLEL_LEVEL=2
WORKDIR /src/eigenpy/build
RUN cmake -DPYTHON_EXECUTABLE=$(which python3) -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON ..
RUN make -sj2
......@@ -19,11 +19,12 @@
namespace eigenpy {
template <typename EigenType,
typename BaseType = typename get_eigen_base_type<EigenType>::type>
typename BaseType = typename get_eigen_base_type<EigenType>::type,
typename Scalar = typename EigenType::Scalar>
struct expose_eigen_type_impl;
template <typename MatType>
struct expose_eigen_type_impl<MatType, Eigen::MatrixBase<MatType> > {
template <typename MatType, typename Scalar>
struct expose_eigen_type_impl<MatType, Eigen::MatrixBase<MatType>, Scalar> {
static void run() {
if (check_registration<MatType>()) return;
......@@ -40,8 +41,9 @@ struct expose_eigen_type_impl<MatType, Eigen::MatrixBase<MatType> > {
};
#ifdef EIGENPY_WITH_TENSOR_SUPPORT
template <typename TensorType>
struct expose_eigen_type_impl<TensorType, Eigen::TensorBase<TensorType> > {
template <typename TensorType, typename Scalar>
struct expose_eigen_type_impl<TensorType, Eigen::TensorBase<TensorType>,
Scalar> {
static void run() {
if (check_registration<TensorType>()) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment