37 if (s.length() == 0 || s.length() == 2 || s.length() > 3)
39 char c =
static_cast<char>(tolower(s[s.length() - 1]));
62 static int dim(
const std::string &s) {
63 if (s.length() == 0 || s.length() == 2 || s.length() > 3)
68 if (c < '1' || c >
'9')
74 static int appType(
const std::string &s) {
75 if (s.length() == 0 || s.length() == 2 || s.length() > 3)
79 char c =
static_cast<char>(tolower(s[0]));
99 static std::string
str() {
return std::string(
"u"); }
114 #define DEFINE_DISCTYPE_SCALAR(TYPE, STRING) \
116 struct DiscType< TYPE > : public DiscTypeBase { \
117 static std::string str() { return std::string(STRING); } \
142 #define DEFINE_DISCTYPE_APPTYPE(TYPE, STRING) \
143 template<class T, unsigned D> \
144 struct DiscType< TYPE<T, D> > : public DiscTypeBase { \
145 static std::string str() { \
147 std::string retval = STRING; \
149 retval += DiscType<T>::str(); \
#define DEFINE_DISCTYPE_SCALAR(TYPE, STRING)
#define DEFINE_DISCTYPE_APPTYPE(TYPE, STRING)
MMatrix< m_complex > complex(MMatrix< double > real)
constexpr double c
The velocity of light in m/s.
static int scalarType(const std::string &s)
static int appType(const std::string &s)
static int dim(const std::string &s)