Multik 0.3.0 Help

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

-a

Negate all elements.

See Arithmetic operations for details.

Logical

Operation

Function

Description

Logical AND

and

Element-wise AND, returns Int.

Logical OR

or

Element-wise OR, returns Int.

See Logical operations for details.

Comparison

Operation

Function

Description

Element-wise min

minimum

Element-wise minimum of two arrays.

Element-wise max

maximum

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.

19 February 2026