How can we send X[i] to the hypothesis function and iterate over it

How can we send X[i] to the hypothesis function and iterate over it as a 1D array to calculate y_?