FUNCTION REFERENCE

gather

Bring data back from a GPU or a pool; identity in MatRust.

Bring data back from a GPU or a pool; identity in MatRust.

Syntax

X = gather(G)

Syntax

[X1, ..., Xn] = gather(G1, ..., Gn)

Returns each input unchanged, since MatRust keeps every array on the CPU.

Example

x = gather(5);   % 5

Differences from MATLAB: Identity in MatRust; tall arrays are not supported.

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