scipy.linalg contains all the functions in numpy.linalg. plus some other more advanced ones not contained in numpy.linalgSo for all my purposes, I will only use scipy.linalg.
Another advantage of using scipy.linalg over numpy.linalg is that it is always compiled with BLAS/LAPACK support, while for numpy this is optional. Therefore, the scipy version might be faster depending on how numpy was installed.
Therefore, unless you don’t want to add scipy as a dependency to your numpy program, use scipy.linalg instead of numpy.linalg
Sunday, January 11, 2015
EDIT: Use scipy.linalg over numpy.linalg.
Per my previous post, I mistakenly referenced numpy.linalg and scipy.linalg as if they were the same. Upon looking deeper at the documentation for scipy.linalg it clearly states the following:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment