Generate a linearly spaced numeric array whose elements increment by 1 starting from zero and having the same length and data type as a provided input array.