FUNCTION REFERENCE

spmdIndex

Index of this worker in an spmd block; always 1 in MatRust.

Index of this worker in an spmd block; always 1 in MatRust.

Syntax

k = spmdIndex

MatRust runs spmd bodies once on the client, so the index is 1 inside and outside spmd.

Example

k = spmdIndex;   % 1

Differences from MATLAB: Runs serially in MatRust.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.