Returns a flat ndarray of all elements resulting from calling the transform function on each element and its multi index in this dn ndarray.