Return an array of the same length as the input array.