Skip to content
Snippets Groups Projects
Commit d9cf8d9f authored by jcarpent's avatar jcarpent
Browse files

[All] Add alignment EIGENPY_DEFAULT_ALIGNMENT_VALUE

parent 620f95b7
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 2014-2017, Nicolas Mansard and Justin Carpentier, LAAS-CNRS
* Copyright 2014-2018, Nicolas Mansard and Justin Carpentier, LAAS-CNRS
*
* This file is part of eigenpy.
* eigenpy is free software: you can redistribute it and/or
......@@ -20,8 +20,17 @@
#include <boost/python.hpp>
#include <Eigen/Core>
#include <numpy/numpyconfig.h>
#ifdef NPY_1_8_API_VERSION
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#endif
#include <numpy/noprefix.h>
#ifdef NPY_ALIGNED
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Aligned16
#else
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Unaligned
#endif
#endif // ifndef __eigenpy_fwd_hpp__
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