Ignore:
Timestamp:
01/25/17 16:25:17 (7 years ago)
Author:
yushan
Message:

initialize the branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/parse_expr/operator_expr.hpp

    r1019 r1037  
    4343      opScalarScalar[string("le")] = le_ss; 
    4444      opScalarScalar[string("ge")] = ge_ss; 
    45       opScalarScalar[string("ne")] = ne_ss; 
    4645 
    4746      opField[string("neg")] = neg_f; 
     
    6463      opFieldField[string("le")] = le_ff; 
    6564      opFieldField[string("ge")] = ge_ff; 
    66       opFieldField[string("ne")] = ne_ff; 
    6765 
    6866      opFieldScalar[string("add")] = add_fs; 
     
    7674      opFieldScalar[string("le")] = le_fs; 
    7775      opFieldScalar[string("ge")] = ge_fs; 
    78       opFieldScalar[string("ne")] = ne_fs; 
    7976 
    8077      opScalarField[string("add")] = add_sf; 
     
    8784      opScalarField[string("le")] = le_sf; 
    8885      opScalarField[string("ge")] = ge_sf; 
    89       opScalarField[string("ne")] = ne_sf; 
    9086    } 
    9187 
     
    164160    static inline double le_ss(double x, double y)    { return x <= y; } 
    165161    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; } 
    167162 
    168163    static inline CArray<double,1> neg_f(const CArray<double,1>& x)   { return Array<double,1>(-x); } 
     
    185180    static inline CArray<double,1> le_ff(const CArray<double,1>& x, const CArray<double,1>& y)    { return Array<double,1>(x <= y); } 
    186181    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); } 
    188182 
    189183    static inline CArray<double,1> add_fs(const CArray<double,1>& x, double y)   { return Array<double,1>(x + y); } 
     
    197191    static inline CArray<double,1> le_fs(const CArray<double,1>& x, double y)    { return Array<double,1>(x <= y); } 
    198192    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); } 
    200193 
    201194    static inline CArray<double,1> add_sf(double x, const CArray<double,1>& y)   { return Array<double,1>(x + y); } 
     
    208201    static inline CArray<double,1> le_sf(double x, const CArray<double,1>& y)    { return Array<double,1>(x <= y); } 
    209202    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); } 
    211203  }; 
    212204 
Note: See TracChangeset for help on using the changeset viewer.