|
Prev | Next |
b = NearEqual(x, y, r, a)
AD<Type> or
AD< std::complex<Type> >.
const Type &x
const AD<Type> &x
const AD< std::complex<Type> > &x
const Type &y
const AD<Type> &y
const AD< std::complex<Type> > &x
const Type &r
It must be greater than or equal to zero.
The relative error condition is defined as:
\[
\frac{ | x - y | } { |x| + |y| } \leq r
\]
const Type &a
It must be greater than or equal to zero.
The absolute error condition is defined as:
\[
| x - y | \leq a
\]
bool b
If either x or y is infinite or not a number,
the return value is false.
Otherwise, if either the relative or absolute error
condition (defined above) is satisfied, the return value is true.
Otherwise, the return value is false.
| Operation | Description |
a <= b |
less that or equal operator (returns a bool object)
|