Vectorised hydraulics functions