Vectorize Operator

Keystroke: [Ctrl] [−]

vectorize operator example

Applies operators and functions element-wise to an array, allowing you to perform iterative calculations without using a range variable.

Operands:

Examples:

To perform an element-wise matrix multiplication of A and B, two matrices of the same size, you type A*B, select the entire expression, then type [Ctrl] [−] to vectorize the multiplication operation.

element-wise matrix multiplication

The vectorized product returns an array of the same size as A and B in which each element contains the product of the paired elements of A and B. The non-vectorized product performs a standard matrix multiplication.

You can use the vectorize operator to symbolically evaluate a function or operator applied to an array. See Evaluating Functions Symbolically for an example.

Notes:

QuickSheet