answered question

answers (2)

edwardclin...
0
Votes
BEST ANSWER  decided by votes   |  edwardclint  |  November 05, 2009 12:20 PM
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-

Comment
abbiewilso...
0
Votes
abbiewilson55  |  November 06, 2009 09:07 AM
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.
Comment
140

ask any question

Top of Page
Buy Mahalo Dollars
WITH CREDIT CARD OR PAYPAL

Please log in to use this function.