false
Create codistributed array of logical 0 (false)
Syntax
Description
creates an cF
= false(n
,codist
)n
-by-n
codistributed matrix of
logical zeros and uses codist
to specify the distribution of the
array values across the workers.
Specify codist
as "codistributed"
to use the
default codistributor1d
distribution scheme or the distribution scheme
defined by a codistributor1d
or codistributor2dbc
object.
When you create the codistributed array in a communicating job or spmd
block, the function creates an array on each worker. If you create a codistributed array
outside of a communicating job or spmd
block, the array is stored only on
the worker or client that creates the codistributed array.
By default, the codistributed array has the underlying type double
.
creates an cF
= false(sz1,...,szN
,codist
)sz1
-by-...-by-szN
codistributed array of
logical zeros where sz1,...,szN
indicates the size of each
dimension.
creates a codistributed array of logical zeros without using communication between
workers. You can use this syntax with any of the input arguments in the previous
syntaxes.
cF
= false(___,"noCommunication")
When you create very large arrays or your communicating job or spmd
block uses many workers, worker-worker communication can slow down array creation. Use this
syntax to improve the performance of your code by removing the time required for
worker-worker communication.
Tip
When you use this syntax, some error checking steps are skipped. Use this syntax
to improve the performance of your code after you prototype your code without
specifying "noCommunication"
.
uses the array cF
= false(___,like=p
)p
to return a codistributed array of logical zeros.
You can also specify "noCommunication"
as part of the function
call.
The returned array cF
has the same sparsity as
p
.
Examples
Input Arguments
Tips
false(n,"codistributed")
is much faster and more memory efficient thanlogical(zeros(n,"codistributed"))
.
Version History
Introduced in R2006b