Prev
Next
Index->
contents
reference
index
search
external
Up->
cppad_swig
library
a_double
a_double_unary_op
cppad_swig->
testing
swig_xam.i
library
whats_new_2018
library->
module
a_double
vector
a_fun
sparse
error
xam.m4
a_double->
a_double_ctor
a_double_unary_op
a_double_property
a_double_ad_binary
a_double_compare
a_double_assign
a_double_unary_fun
a_double_cond_assign
a_double_unary_op->
a_double_unary_op_xam.cpp
a_double_unary_op_xam.m
a_double_unary_op_xam.pm
a_double_unary_op_xam.py
Headings->
Syntax
ax
ay
Octave
Example
@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} }@)@
a_double Unary Plus and Minus
Syntax
ay
= +
ax
ay
= -
ax
ax
This object has prototype
const a_double&
ax
ay
If the operator is
+
, the result is equal to
ax
. If it is
-
, the result is the negative of
ax
.
Octave
Note that Octave does not support these unary operators (the reason why is unclear at this time).
Example
C++
,
Octave
,
Perl
,
Python
.
Input File: lib/a_double.cpp