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

Merge pull request #10 from aelkhour/scalar_type_template

Add Scalar template argument to UnalignedEquivalent struct.
parents 551f08a9 2aeb3838
No related merge requests found
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
namespace eigenpy namespace eigenpy
{ {
template<typename D> template<typename D, typename Scalar = typename D::Scalar>
struct UnalignedEquivalent struct UnalignedEquivalent
{ {
typedef Eigen::MatrixBase<D> MatType; typedef Eigen::MatrixBase<D> MatType;
typedef Eigen::Matrix<typename D::Scalar, typedef Eigen::Matrix<Scalar,
D::RowsAtCompileTime, D::RowsAtCompileTime,
D::ColsAtCompileTime, D::ColsAtCompileTime,
#ifndef EIGENPY_ALIGNED #ifndef EIGENPY_ALIGNED
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment