Using the C++ Math Library    

Miscellaneous Operators

These operators are divided into three groups: indexing, logical, and stream. The stream operators are the only operators that do not return an array. In accordance with general practice in C++, the stream operators return their stream operand.

Table 11-4: C++ Miscellaneous Operators 
C++ Operator
Definition
Equivalent C++ Function
(x)
One-dimensional indexing
Not applicable
(x, y)
Two-dimensional indexing
Not applicable
|
Logical OR
or_func()
&
Logical AND
and_func()
~
Logical NOT
not_func()
>>
Stream extraction (input)
Not applicable
<<
Stream insertion (output)
Not applicable


 Relational Operators MATLAB Functions