## Not run:
# ## A 9 partition (each partition 3x3), 9x9 DArray with each element initialized to 5.
# a <- darray(psize=c(3,3),dim=c(9,9),data=5)
# collect(a)
# b <- darray(psize=c(3,3),dim=c(9,9)) # Same as 'a', but filled with 0s.
# ## An empty darray with 6 partitions, 2 per column and 3 per row.
# c <- darray(nparts=c(2,3))
# ## End(Not run)
Run the code above in your browser using DataLab