//Copyright (C) 2004 Dominic Letourneau (dominic.letourneau@usherbrooke.ca) #ifndef _SMALLER_OPERATORS_CC_ #define _SMALLER_OPERATORS_CC_ #include "operators.h" #include "net_types.h" #include "Vector.h" #include "Matrix.h" #include "Complex.h" //@implements core using namespace std; namespace FD { template ObjectRef smallerCTypeFunction(ObjectRef op1, ObjectRef op2) { RCPtr op1Value = op1; RCPtr op2Value = op2; return ObjectRef(Bool::alloc(static_cast(op1Value->val()) < static_cast(op2Value->val()))); } REGISTER_ALL_SCALAR_NO_COMPLEX_VTABLE(smallerVtable, smallerCTypeFunction); }//namespace FD #endif