answered question
answers (2)
To get unbalanced arrays, try to get some number of columns of a codistributed array as a function of labindex.
-quote-
"This demo demonstrates how to use the parallel profiler in the case of an unevenly distributed array. The easiest way to create a codistributed array is to pass a codistributor as an argument, such as in rand(N, codistributor). This evenly distributes your matrix of size N between your MATLABĀ® workers. To get unbalanced data distribution, you can get some number of columns of a codistributed array as a function of labindex. "
-end of quote-
-quote-
"This demo demonstrates how to use the parallel profiler in the case of an unevenly distributed array. The easiest way to create a codistributed array is to pass a codistributor as an argument, such as in rand(N, codistributor). This evenly distributes your matrix of size N between your MATLABĀ® workers. To get unbalanced data distribution, you can get some number of columns of a codistributed array as a function of labindex. "
-end of quote-
Like C Java does not have true multidimensional arrays. Java fakes multidimensional arrays using arrays of arrays. This means that it is possible to have unbalanced arrays. An unbalanced array is a multidimensional array where the dimension isn't the same for all rows. In most applications this is a horrible idea and should be avoided.
Related questions
140 characters left












