![](https://img-blog.csdnimg.cn/20190918140012416.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
numpy
numpy
feifeiyechuan
这个作者很懒,什么都没留下…
展开
-
[报错] [Ubuntu] [Python] MemoryError: Unable to allocate array with shape (x, x) and data type float64
错误信息MemoryError: Unable to allocate array with shape (430949, 430949) and data type float64 系统环境 Ubuntu 18.04 LTS Python 3.6 原因分析 据传 [1] 是因为触发了系统的 overcommit handing 模式。 事情是这样的,我打算生成一个形状为[430949, 430...转载 2019-11-08 11:50:17 · 17873 阅读 · 5 评论 -
numpy快捷使用
自己写的一个numpys库,方便考试使用行列式,矩阵。。。。 import numpy as np import re import sys #======= #获得数组(数组字符串) def huodeshuzu(shuzustr): lists = re.findall(r'-?\d+\.?\d*', shuzustr) return [float(i) for i i...原创 2018-11-20 21:12:08 · 994 阅读 · 0 评论 -
总结:numpy常用方法
总结了最常用,需要注意的一些numpy方法,做个记录 import numpy as np from numpy import * from matplotlib.pylab import plt # 创建mat矩阵 a = mat([[1, 2], [3, 4]]); print(a) # 创建0矩阵 b = np.zeros((3, 4)); print(b) # 创建1矩阵 c = np....原创 2019-07-08 10:00:25 · 160 阅读 · 0 评论