NumPy 是 Python 中最常用的数值计算库之一,提供高效的多维数组(ndarray)以及大量用于线性代数、统计、傅里叶变换等的运算工具。(也常写作 NumPy。)
/ˈnʌm.paɪ/
I used NumPy to create an array of numbers.
我用 NumPy 创建了一个数字数组。
Using NumPy, the researchers vectorized the computation to speed up the simulation and reduce memory overhead.
研究人员使用 NumPy 将计算向量化,以加快仿真速度并减少内存开销。
“NumPy” 来自 Numerical Python(数值化的 Python)。它最初用于让 Python 更方便、高效地处理科学计算中的数组与矩阵运算,后来成为数据科学与机器学习生态的基础组件之一。