Generate vector functions on demand.