MATLAB Functions on Distributed and Codistributed Arrays

Many functions in MATLAB® software are enhanced or overloaded so that they operate on codistributed arrays in much the same way that they operate on arrays contained in a single workspace.

In most cases, if any of the input arguments to these functions is a distributed or codistributed array, their output arrays are distributed or codistributed, respectively. If the output is always scalar, it is replicated on each worker. All these overloaded functions with codistributed array inputs must reference the same inputs at the same time on all workers; therefore, you cannot use variant arrays for input arguments.

The following table lists the enhanced MATLAB functions that operate on distributed or codistributed arrays.

A few of these functions might exhibit certain limitations when operating on a distributed or codistributed array. Click any function name to see specific help, including limitations.

absabs
acosacos
acosdacosd
acoshacosh
acotacot
acotdacotd
acothacoth
acscacsc
acscdacscd
acschacsch
allall
andand(&)
angleangle
anyany
arrayfunarrayfun
asecasec
asecdasecd
asechasech
asinasin
asindasind
asinhasinh
atanatan
atan2atan2
atan2datan2d
atandatand
atanhatanh
besselhbesselh
besselibesseli
besseljbesselj
besselkbesselk
besselybessely
betabeta
betaincbetainc
betaincinvbetaincinv
betalnbetaln
bitandbitand
bitorbitor
bitxorbitxor
bsxfunbsxfun
cart2pol
cart2sph
castcast
catcat
ceilceil
cell2matcell2mat
cell2structcell2struct
celldispcelldisp
cellfuncellfun
charchar
cholchol
compancompan
complexcomplex
conjconj
corrcoefcorrcoef
coscos
cosdcosd
coshcosh
cotcot
cotdcotd
cothcoth
covcov
csccsc
cscdcscd
cschcsch
ctransposectranspose(')
cummaxcummax
cummincummin
cumprodcumprod
cumsumcumsum
diagdiag
diffdiff
dotdot
doubledouble
eigeig
endend
epseps
eqeq(==)
erferf
erfcerfc
erfcinverfcinv
erfcxerfcx
erfinverfinv
expexp
expm1expm1
eye
false
fieldnamesfieldnames
fftfft
fft2fft2
fftnfftn
findfind
fixfix
floorfloor
fullfull
gammagamma
gammaincgammainc
gammaincinvgammaincinv
gammalngammaln
gege(>=)
gtgt(>)
hankelhankel
horzcathorzcat([])
hsv2rgbhsv2rgb
hypothypot
ifftifft
ifft2ifft2
ifftnifftn
imagimag
Inf
int16int16
int32int32
int64int64
int8int8
invinv
ipermuteipermute
isemptyisempty
isequalisequal
isequalnisequaln
isfiniteisfinite
isfloatisfloat
isinfisinf
isintegerisinteger
islogicalislogical
isnanisnan
isnumericisnumeric
isrealisreal
issparseissparse
ldivideldivide(.\)
lele(<=)
lengthlength
loglog
log10log10
log1plog1p
log2log2
logicallogical
ltlt(<)
lulu
maxmax
meanmean
median
meshgridmeshgrid
minmin
minusminus(-)
mldividemldivide(\)
mrdividemrdivide(/)
mtimesmtimes(*)
modmod
modemode
NaN
ndimsndims
ndgridndgrid
nene(~=)
nextpow2nextpow2
nnznnz
nonzerosnonzeros
normnorm
normestnormest
notnot(~)
nthrootnthroot
num2cellnum2cell
numelnumel
nzmaxnzmax
ones
oror(|)
permutepermute
plusplus(+)
pol2cart
pow2pow2
powerpower(.^)
prodprod
psipsi
qrqr
rand
randi
randn
rdividerdivide(./)
realreal
reallogreallog
realpowrealpow
realsqrtrealsqrt
remrem
repmatrepmat
reshapereshape
rgb2hsvrgb2hsv
rmfieldrmfield
roundround
secsec
secdsecd
sechsech
signsign
sinsin
sindsind
singlesingle
sinhsinh
sizesize
sortsort
sortrowssortrows
sparsesparse
spfunspfun
sph2cart
sponesspones
sqrtsqrt
std
struct2cellstruct2cell
subsasgnsubsasgn
subsindexsubsindex
subsrefsubsref
sumsum
svdsvd
swapbytesswapbytes
tantan
tandtand
tanhtanh
timestimes(.*)
toeplitztoeplitz
transposetranspose(.')
trapztrapz
triltril
triutriu
true
typecasttypecast
uint16uint16
uint32uint32
uint64uint64
uint8uint8
uminusuminus(-)
unwrapunwrap
uplusuplus(+)
vandervander
varvar
vertcatvertcat([;])
xorxor
zeros

Was this topic helpful?