Python(编程语言)
计算机科学
计算
复制
数据结构
计算科学
并行计算
数组数据结构
算法
程序设计语言
政治学
法学
作者
Stéfan van der Walt,Steven C. Colbert,Gaël Varoquaux
摘要
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.
科研通智能强力驱动
Strongly Powered by AbleSci AI