Prev Next

@(@\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