Searched defs:AddIfNull (Results 1 – 2 of 2) sorted by relevance
17 template<typename Scalar> struct AddIfNull { struct18 const Scalar operator() (const Scalar a, const Scalar b) const {return a<=1e-3 ? b : a;} in operator ()()19 enum { Cost = NumTraits<Scalar>::AddCost };
28 template<typename Scalar> struct AddIfNull { struct29 const Scalar operator() (const Scalar a, const Scalar b) const {return a<=1e-3 ? b : a;} in operator ()()30 enum { Cost = NumTraits<Scalar>::AddCost };