1. A device comprising: one or more processors to: receive a command to initiate parallel processing, the command including: an indication of a function that is to be performed in connection with the parallel processing, and a reference to a multidimensional array to which the function is to be applied, the multidimensional array including at least three dimensions; determine whether the command includes an argument indicating one or more dimensions, of the at least three dimensions, by which the multidimensional array is to be partitioned; selectively partition, based on determining whether the command includes the argument, the multidimensional array, along the one or more dimensions or along a last non-singleton dimension of the at least three dimensions, to divide the multidimensional array into a plurality of blocks, the multidimensional array being partitioned along the one or more dimensions when the command includes the argument, the multidimensional array being partitioned along the last non-singleton dimension when the command does not include the argument, and each of the plurality of blocks representing a subset of the multidimensional array; and control application of the function to the plurality of blocks to cause the function to be applied in parallel to at least two blocks of the plurality of blocks.