Skip to content

Commit a110f41

Browse files
committed
core: add EIGENPY_NO_ALIGNMENT_VALUE
1 parent b365f4c commit a110f41

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

include/eigenpy/fwd.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Aligned
2121
#endif
2222

23+
#define EIGENPY_NO_ALIGNMENT_VALUE Eigen::Unaligned
24+
2325
#include "eigenpy/expose.hpp"
2426

2527
namespace eigenpy

include/eigenpy/ref.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ namespace eigenpy
2020

2121
template<typename PlainObjectTypeT>
2222
struct Ref
23-
: Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename StrideType<PlainObjectTypeT>::type>
23+
: Eigen::Ref<PlainObjectTypeT,EIGENPY_NO_ALIGNMENT_VALUE,typename StrideType<PlainObjectTypeT>::type>
2424
{
2525
public:
26-
typedef Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename eigenpy::template StrideType<PlainObjectTypeT>::type> Base;
26+
typedef Eigen::Ref<PlainObjectTypeT,EIGENPY_NO_ALIGNMENT_VALUE,typename eigenpy::template StrideType<PlainObjectTypeT>::type> Base;
2727

2828
private:
2929
typedef Eigen::internal::traits<Base> Traits;

0 commit comments

Comments
 (0)