Index operator
Access array elements by indices or logical values.
See index operator.
[ ] | 1d indexing |
| |
2d Indexing |
|
Colon operator
Create a sequence of float values.
See colon operator.
: | Binary |
| |
Ternary |
|
Equality operators
Check float[], bool[] or string[] for equality.
Two arrays are equal if they have equal dimensions and equal elements.
Return type: bool
== | Equality |
| |
!= | Inequality |
|
Relational operators
Compare float[] or string[].
Two arrays are element-wise compared, row by row. If an element is less, the respective array is less. If the first rows are equal, the array with less columns is less. Otherwise the array with less rows is less.
Return type: bool
< | Less |
| |
<= | Less or equal |
| |
> | Greater |
| |
>= | Greater or equal |
|
String concatenation operators
Concatenate string with string[], float[] or bool[].
Return type: string
+ | String-string[] concatenation |
| |
String-float[] concatenation |
| ||
String-boolean[] concatenation |
|
Element-wise array operators
Element-wise operators have a preceding dot. They perform the operator on each element and return the results in an array with the same dimensions as the input array(s). The dimensions of two arrays must be equal.
Logical operators
Element-wise logical operations on bool[].
Return type: bool[]
.! | Negation |
| |
.|| | Logical Or |
| |
.&& | Logical And |
|
Arithmetic operators
Element-wise arithmetic operations on float[].
Return type: float[]
.+ | Plus |
| |
Unary plus |
| ||
.- | Minus |
| |
Unary minus |
| ||
.* | Multiplication |
| |
./ | Division |
| |
.% | Modulus (remainder) |
|
Equality operators
Element-wise check float[], bool[] or string[] for equality.
Return type: bool[]
.== | Equality |
| |
.!= | Inequality |
|
Relational operators
Element-wise compare float[] or string[].
Return type: bool[]
.< | Less |
| |
.<= | Less or equal |
| |
.> | Greater |
| |
.>= | Greater or equal |
|
String concatenation operators
Element-wise concatenate string, string[] with string[], float[], bool[] or string[] with string, float, bool.
Return type: string[]
.+ | String-string concatenation |
| |
String-float concatenation |
| ||
String-boolean concatenation |
|