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