Skip to content
Snippets Groups Projects
Unverified Commit 8a83276f authored by Justin Carpentier's avatar Justin Carpentier Committed by Joris Vaillant
Browse files

core: add helpers to check Tensor support at run-time

parent e2cf2300
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ namespace eigenpy {
*/
void EIGENPY_DLLAPI enableEigenPy();
bool EIGENPY_DLLAPI withTensorSupport();
/* Enable the Eigen--Numpy serialization for the templated MatType class.*/
template <typename MatType>
void enableEigenPySpecific();
......
......@@ -60,4 +60,12 @@ void enableEigenPy() {
exposeNoneType();
}
bool withTensorSupport() {
#ifdef EIGENPY_WITH_TENSOR_SUPPORT
return true;
#else
return false;
#endif
}
} // namespace eigenpy
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