2015年9月12日

numpy函数fromfunction分析

摘要: 从函数规则创建数组是非常方便的方法。在numpy中我们常用fromfunction函数来实现这个功能。 在numpy的官网有这么一个例子。 1 >>> def f(x,y): 2 ... return 10*x+y 3 ... 4 >>> b = fromfunction(f,... 阅读全文

posted @ 2015-09-12 19:58 啊哈彭 阅读(4902) 评论(0) 推荐(0) 编辑

导航