Prev | Next | base_ordered |
AD<Base>
:
Syntax | Result |
b = GreaterThanZero(x)
| @(@ x > 0 @)@ |
b = GreaterThanOrZero(x)
| @(@ x \geq 0 @)@ |
b = LessThanZero(x)
| @(@ x < 0 @)@ |
b = LessThanOrZero(x)
| @(@ x \leq 0 @)@ |
b = abs_geq(x, y)
| @(@ |x| \geq |y| @)@. |
const Base& x
const Base& y
bool b
Base
supports ordered operations,
these functions should have their corresponding definitions.
For example,
namespace CppAD {
inline bool GreaterThanZero(const Base &x)
{ return (x > 0);
}
}
The other functions would replace >
by the corresponding operator.
For example, see
base_alloc
.
Base
does not support ordering,
one might (but need not) define GreaterThanZero
as follows:
namespace CppAD {
inline bool GreaterThanZero(const Base &x)
{ // attempt to use GreaterThanZero with a Base argument
assert(0);
return x;
}
}
The other functions would have the corresponding definition.
For example, see
complex Ordered
.
Independent
.
optimize
is used.