NumPy阵列:一种高效数值计算的结构
The NumPy array: a structure for efficient numerical computation
摘要:
在Python世界中,NumPy数组是数值数据的标准表示。在这里,我们将展示这些数组如何使有效的实施数值计算的高级语言。总的来说,应用了三种技术来提高性能:矢量化计算,避免在内存中复制数据,以及最大限度地减少操作计数。我们首先介绍NumPy数组结构,然后展示如何使用它进行高效计算,最后展示如何与其他库共享数组数据。
英文摘要:
In the Python world, NumPy arrays are the standard representation for numerical data. Here, we show how these arrays enable efficient implementation of numerical computations in a high-level language. Overall, three techniques are applied to improve performance: vectorizing calculations, avoiding copying data in memory, and minimizing operation counts. We first present the NumPy array structure, then show how to use it for efficient computation, and finally how to share array data with other libraries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。