This is because mutiprocessing.Array
is a wrapper around python's array
type, not numpy.ndarray
and python's array
type doesn't support multiple dimensionality. Specifically, look at the documentation for the initializer
:
A new array whose items are restricted by typecode, and initialized from the optional initializer value, which must be a list, string, or iterable over elements of the appropriate type.
You've got an iterable (a multi-dimensional array), but it yields views/arrays, not elements of the appropriate type.