.. _program_listing_file__tmp_ws_src_eigenpy_include_eigenpy_utils_scalar-name.hpp: Program Listing for File scalar-name.hpp ======================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/eigenpy/include/eigenpy/utils/scalar-name.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Copyright 2020 INRIA */ #ifndef __eigenpy_utils_scalar_name_hpp__ #define __eigenpy_utils_scalar_name_hpp__ #include #include namespace eigenpy { template struct scalar_name { static std::string shortname(); }; template <> struct scalar_name { static std::string shortname() { return "f"; }; }; template <> struct scalar_name { static std::string shortname() { return "d"; }; }; template <> struct scalar_name { static std::string shortname() { return "ld"; }; }; template struct scalar_name > { static std::string shortname() { return "c" + scalar_name(); }; }; } // namespace eigenpy #endif // ifndef __eigenpy_utils_scalar_name_hpp__