| 211 | |
| 212 | static inline bool isIdentity(const MatExpr& e) { return e.op == &g_MatOp_Identity; } |
| 213 | static inline bool isAddEx(const MatExpr& e) { return e.op == &g_MatOp_AddEx; } |
| 214 | static inline bool isScaled(const MatExpr& e) { return isAddEx(e) && (!e.b.data || e.beta == 0) && e.s == Scalar(); } |
| 215 | static inline bool isBin(const MatExpr& e, char c) { return e.op == &g_MatOp_Bin && e.flags == c; } |
| 216 | static inline bool isCmp(const MatExpr& e) { return e.op == &g_MatOp_Cmp; } |