tiling function

Apply tile_func to vector