Changeset 1019 for XIOS/trunk/src/parse_expr/operator_expr.hpp
- Timestamp:
- 01/10/17 13:53:02 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/parse_expr/operator_expr.hpp
r728 r1019 43 43 opScalarScalar[string("le")] = le_ss; 44 44 opScalarScalar[string("ge")] = ge_ss; 45 opScalarScalar[string("ne")] = ne_ss; 45 46 46 47 opField[string("neg")] = neg_f; … … 63 64 opFieldField[string("le")] = le_ff; 64 65 opFieldField[string("ge")] = ge_ff; 66 opFieldField[string("ne")] = ne_ff; 65 67 66 68 opFieldScalar[string("add")] = add_fs; … … 74 76 opFieldScalar[string("le")] = le_fs; 75 77 opFieldScalar[string("ge")] = ge_fs; 78 opFieldScalar[string("ne")] = ne_fs; 76 79 77 80 opScalarField[string("add")] = add_sf; … … 84 87 opScalarField[string("le")] = le_sf; 85 88 opScalarField[string("ge")] = ge_sf; 89 opScalarField[string("ne")] = ne_sf; 86 90 } 87 91 … … 160 164 static inline double le_ss(double x, double y) { return x <= y; } 161 165 static inline double ge_ss(double x, double y) { return x >= y; } 166 static inline double ne_ss(double x, double y) { return x != y; } 162 167 163 168 static inline CArray<double,1> neg_f(const CArray<double,1>& x) { return Array<double,1>(-x); } … … 180 185 static inline CArray<double,1> le_ff(const CArray<double,1>& x, const CArray<double,1>& y) { return Array<double,1>(x <= y); } 181 186 static inline CArray<double,1> ge_ff(const CArray<double,1>& x, const CArray<double,1>& y) { return Array<double,1>(x >= y); } 187 static inline CArray<double,1> ne_ff(const CArray<double,1>& x, const CArray<double,1>& y) { return Array<double,1>(x != y); } 182 188 183 189 static inline CArray<double,1> add_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x + y); } … … 191 197 static inline CArray<double,1> le_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x <= y); } 192 198 static inline CArray<double,1> ge_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x >= y); } 199 static inline CArray<double,1> ne_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x != y); } 193 200 194 201 static inline CArray<double,1> add_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x + y); } … … 201 208 static inline CArray<double,1> le_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x <= y); } 202 209 static inline CArray<double,1> ge_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x >= y); } 210 static inline CArray<double,1> ne_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x != y); } 203 211 }; 204 212
Note: See TracChangeset
for help on using the changeset viewer.