Returns a flat ndarray of all elements resulting from calling the transform function on each element in this ndarray.