Prepare for vectorisation
vectorised linterp