“vectorized”常指(在数学/编程中)向量化的:把原本逐个元素处理的操作,改为对整个向量/数组一次性批量处理(常用于提升性能、减少显式循环)。也可泛指“用向量表示/处理过的”。
/ˈvɛktəraɪzd/
Vectorized code often runs faster than a Python for-loop.
向量化代码通常比用 Python 的 for 循环跑得更快。
By rewriting the feature extraction step as a vectorized operation, the team reduced latency and made the pipeline easier to maintain.
通过把特征提取步骤改写为向量化操作,团队降低了延迟,并让整个流程更易维护。
来自 vector(向量)+ -ize(使成为……的动词后缀)构成 vectorize(向量化),其过去分词/形容词形式为 vectorized。vector 源自拉丁语 vector(“搬运者/运载者”),进一步来自 vehere(“运输、携带”);现代数学中引申为“具有方向和大小、可用于表示与运算的量”。