- 教程
- 介绍
- 环境
- Ndarray 对象(Ndarray Object)
- 数据类型
- 数组属性(Array Attributes)
- 阵列创建例程(Array Creation Routines)
- 来自现有数据的数组(Array from Existing Data)
- 数值范围中的数组(Array From Numerical Ranges)
- 数值范围中的数组(Array From Numerical Ranges)
- 数值范围中的数组(Array From Numerical Ranges)
- 广播(Broadcasting)
- 迭代数组(Iterating Over Array)
- 数组操作(Array Manipulation)
- Binary 运算符
- 字符串函数(String Functions)
- 数学函数(Mathematical Functions)
- 算术运算(Arithmetic Operations)
- 统计函数(Statistical Functions)
- 统计函数(Statistical Functions)
- 字节交换(Byte Swapping)
- 副本和视图(Copies & Views)
- 矩阵库(Matrix Library)
- 线性代数(Linear Algebra)
- Matplotlib(Matplotlib)
- 使用Matplotlib的直方图(Histogram Using Matplotlib)
- I/O with NumPy
- 有用的资源
- reshape
- flat
- flatten
- ravel
- transpose
- ndarray.T
- rollaxis
- swapaxes
- broadcast
- broadcast_to
- expand_dims
- squeeze
- concatenate
- stack
- hstack
- vstack
- split
- hsplit
- vsplit
- resize
- append
- insert
- delete
- unique
- bitwise_and
- bitwise_or
- invert
- left_shift
- right_shift
- add()
- multiply()
- center()
- capitalize()
- title()
- lower()
- upper()
- split()
- splitlines()
- strip()
- join()
- replace()
- decode()
- encode()
- dot
- vdot
- inner
- matmul
- determinant
- solve
- inv
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
介绍
NumPy是一个Python包。 它代表'Numerical Python'。 它是一个由多维数组对象和用于处理数组的例程集合组成的库。
Numeric ,NumPy的祖先,由Jim Hugunin开发。 Numarray的另一个包也开发了,具有一些额外的功能。 2005年,Travis Oliphant通过将Numarray的功能整合到Numeric包中来创建NumPy包。 这个开源项目有很多贡献者。
使用NumPy的操作
使用NumPy,开发人员可以执行以下操作 -
数组的数学和逻辑运算。
用于形状操纵的傅里叶变换和例程。
与线性代数有关的操作。 NumPy具有线性代数和随机数生成的内置函数。
NumPy - MatLab的替代品
NumPy经常与SciPy (Scientific Python)和Mat−plotlib (绘图库)等软件包一起使用。 这种组合被广泛用作MatLab的替代品,MatLab是一种流行的技术计算平台。 但是,Python替代MatLab现在被视为一种更现代和完整的编程语言。
它是开源的,这是NumPy的附加优势。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论