Array operations
Overview
Multik NDArrays support a rich set of operations organized into four categories:
Arithmetic
Operation | Operator / Function | Description |
|---|---|---|
Addition |
| Element-wise addition. |
Subtraction |
| Element-wise subtraction. |
Multiplication |
| Element-wise multiplication. |
Division |
| Element-wise division. |
Unary negation |
| Negate all elements. |
See Arithmetic operations for details.
Logical
Operation | Function | Description |
|---|---|---|
Logical AND |
| Element-wise AND, returns |
Logical OR |
| Element-wise OR, returns |
See Logical operations for details.
Comparison
Operation | Function | Description |
|---|---|---|
Element-wise min |
| Element-wise minimum of two arrays. |
Element-wise max |
| Element-wise maximum of two arrays. |
See Comparison operations for details.
Universal (collection-style)
Functions like map, filter, fold, reduce, forEach, sorted, and many more. These follow Kotlin collection conventions and work on any MultiArray<T, D>.
See Universal operations for the full list.