www.gusucode.com > distcomp 案例源码程序 matlab代码 > distcomp/spmdSumAndCountArrivalDelay.m

    
% Copyright 2015 The MathWorks, Inc.

function [total,count] = spmdSumAndCountArrivalDelay(ds)
spmd
    subds = partition(ds,numlabs,labindex);
    [total,count] = sumAndCountArrivalDelay(subds);
end
total = sum([total{:}]);
count = sum([count{:}]);
end