Re: [問題] scipy spdiags
※ 引述《jigfopsda (jigfopsda)》之銘言:
: http://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.spdiags.html
: 我照這網站上的範例打結果出現錯誤@@
: Traceback (most recent call last):
: File "<pyshell#3>", line 1, in <module>
: spdiags(data, diags, 4, 4).todense()
: NameError: name 'spdiags' is not defined
: 有import了應該是不會發生這種事情吧(?)
: 請問可能會是什麼問題呢?
試著把
from scipy import *
改成
from scipy.sparse import spdiags
或
from scipy.sparse import *
試看看
--
我是熊,一年四季冬眠中
( Д`)y━・~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.181.149
推
10/24 10:02, , 1F
10/24 10:02, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):