Mantid
|
Divide functor with result reset to 0 if the denominator is null. More...
#include <VectorHelper.h>
Public Member Functions | |
DividesNonNull ()=default | |
T | operator() (const T &l, const T &r) const |
Returns l/r if r is non-zero, otherwise returns l. More... | |
Divide functor with result reset to 0 if the denominator is null.
Definition at line 210 of file VectorHelper.h.
|
default |
|
inline |
Returns l/r if r is non-zero, otherwise returns l.
Definition at line 213 of file VectorHelper.h.