.. _program_listing_file__tmp_ws_src_eigenpy_include_eigenpy_details.hpp: Program Listing for File details.hpp ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/eigenpy/include/eigenpy/details.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Copyright 2014-2019, CNRS * Copyright 2018-2024, INRIA */ #ifndef __eigenpy_details_hpp__ #define __eigenpy_details_hpp__ #include "eigenpy/fwd.hpp" #include "eigenpy/eigen-allocator.hpp" #include "eigenpy/eigen-from-python.hpp" #include "eigenpy/eigen-to-python.hpp" #include "eigenpy/eigenpy.hpp" #include "eigenpy/exception.hpp" #include "eigenpy/numpy-type.hpp" #include "eigenpy/registration.hpp" #include "eigenpy/scalar-conversion.hpp" namespace eigenpy { template ::type, typename Scalar = typename EigenType::Scalar> struct expose_eigen_type_impl; template struct expose_eigen_type_impl, Scalar> { static void run() { if (check_registration()) return; // to-python EigenToPyConverter::registration(); #if EIGEN_VERSION_AT_LEAST(3, 2, 0) EigenToPyConverter >::registration(); EigenToPyConverter >::registration(); #endif // from-python EigenFromPyConverter::registration(); } }; template struct expose_eigen_type_impl, Scalar> { static void run() { if (check_registration()) return; // to-python EigenToPyConverter::registration(); // #if EIGEN_VERSION_AT_LEAST(3, 2, 0) // EigenToPyConverter >::registration(); // EigenToPyConverter >::registration(); // #endif // from-python EigenFromPyConverter::registration(); } }; #ifdef EIGENPY_WITH_TENSOR_SUPPORT template struct expose_eigen_type_impl, Scalar> { static void run() { if (check_registration()) return; // to-python EigenToPyConverter::registration(); EigenToPyConverter >::registration(); EigenToPyConverter< const Eigen::TensorRef >::registration(); // from-python EigenFromPyConverter::registration(); } }; #endif template void enableEigenPySpecific() { expose_eigen_type_impl::run(); } } // namespace eigenpy #endif // ifndef __eigenpy_details_hpp__