iscodistributed

True for codistributed array

Syntax

tf = iscodistributed(X)

Description

tf = iscodistributed(X) returns true for a codistributed array, or false otherwise. For a description of codistributed arrays, see Nondistributed Versus Distributed Arrays.

Examples

With a running parallel pool,

spmd
    L = ones(100,1);
    D = ones(100,1,'codistributed');
    iscodistributed(L) % returns false
    iscodistributed(D) % returns true
end

See Also

Was this topic helpful?