39 if (s.length() == 0 || s.length() == 2 || s.length() > 3)
41 char c =
static_cast<char>(tolower(s[s.length() - 1]));
64 static int dim(
const std::string &s) {
65 if (s.length() == 0 || s.length() == 2 || s.length() > 3)
70 if (c < '1' || c >
'9')
76 static int appType(
const std::string &s) {
77 if (s.length() == 0 || s.length() == 2 || s.length() > 3)
81 char c =
static_cast<char>(tolower(s[0]));
101 static std::string
str() {
return std::string(
"u"); }
116 #define DEFINE_DISCTYPE_SCALAR(TYPE, STRING) \
118 struct DiscType< TYPE > : public DiscTypeBase { \
119 static std::string str() { return std::string(STRING); } \
144 #define DEFINE_DISCTYPE_APPTYPE(TYPE, STRING) \
145 template<class T, unsigned D> \
146 struct DiscType< TYPE<T, D> > : public DiscTypeBase { \
147 static std::string str() { \
149 std::string retval = STRING; \
151 retval += DiscType<T>::str(); \
static int appType(const std::string &s)
MMatrix< m_complex > complex(MMatrix< double > real)
static int scalarType(const std::string &s)
constexpr double c
The velocity of light in m/s.
static int dim(const std::string &s)
#define DEFINE_DISCTYPE_SCALAR(TYPE, STRING)
#define DEFINE_DISCTYPE_APPTYPE(TYPE, STRING)