Masked Select

Node Icon

Select elements from an array using a boolean mask, i.e. an Boolean Array with True for the elements you want to select and False otherwise, e.g. [1,2,3,4] and [False, True, False, True] will output [2,4].

Inputs

Input

Array to select from.

Type: Numeric Array, Boolean Array, List, Required, Single

Mask

Boolean Array to select with.

Type: Boolean Array, List, Required, Single

Outputs

Output

Selected elements.

Type: Numeric Array, Boolean Array, List

Settings

Broadcast Settings Selection

Select how to align the input data for broadcasting.

Values: Align Leading Dimensions, Align Trailing Dimensions

See also

Keywords: