Changeset 1642 for XIOS/dev/branch_openmp/src/parse_expr/operator_expr.hpp
- Timestamp:
- 01/23/19 10:31:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/parse_expr/operator_expr.hpp
r1545 r1642 264 264 else return x == y; 265 265 } 266 266 267 267 static inline double lt_ss(double x, double y) { return x < y; } 268 268 static inline double gt_ss(double x, double y) { return x > y; } 269 269 static inline double le_ss(double x, double y) { return x <= y; } 270 270 static inline double ge_ss(double x, double y) { return x >= y; } 271 271 272 static inline double ne_ss(double x, double y) // specific check for NaN 272 273 { … … 278 279 else return x != y; 279 280 } 280 281 281 282 static inline CArray<double,1> neg_f(const CArray<double,1>& x) { return Array<double,1>(-x); } 282 283 static inline CArray<double,1> cos_f(const CArray<double,1>& x) { return Array<double,1>(cos(x)); } … … 305 306 static inline CArray<double,1> div_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x / y); } 306 307 static inline CArray<double,1> pow_fs(const CArray<double,1>& x, double y) { return Array<double,1>(pow(x,y)); } 308 307 309 static inline CArray<double,1> eq_fs(const CArray<double,1>& x, double y) // specific check for NaN 308 310 { … … 317 319 else return Array<double,1>(x == y); 318 320 } 319 321 320 322 static inline CArray<double,1> lt_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x < y); } 321 323 static inline CArray<double,1> gt_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x > y); } 322 324 static inline CArray<double,1> le_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x <= y); } 323 325 static inline CArray<double,1> ge_fs(const CArray<double,1>& x, double y) { return Array<double,1>(x >= y); } 326 324 327 static inline CArray<double,1> ne_fs(const CArray<double,1>& x, double y) // specific check for NaN 325 328 { … … 339 342 static inline CArray<double,1> mult_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x * y); } 340 343 static inline CArray<double,1> div_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x / y); } 344 341 345 static inline CArray<double,1> eq_sf(double x, const CArray<double,1>& y) // specific check for NaN 342 346 { … … 355 359 static inline CArray<double,1> le_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x <= y); } 356 360 static inline CArray<double,1> ge_sf(double x, const CArray<double,1>& y) { return Array<double,1>(x >= y); } 361 357 362 static inline CArray<double,1> ne_sf(double x, const CArray<double,1>& y) // specific check for NaN 358 363 {
Note: See TracChangeset
for help on using the changeset viewer.