Improve the creation of `phi_s` and `phi_t`
phi_s and phi_tare created with broadcasting the basis value on two arrays using np.vectorise but it can be made faster.
phi_s and phi_tare created with broadcasting the basis value on two arrays using np.vectorise but it can be made faster.