Help us understand the problem. What is going on with this article?

numpy, scipyちょっと遅い気がするって時はblas, lapack, atlasが入っているか見直しましょう

More than 3 years have passed since last update.

僕の場合はatlasのみ抜けていて、atlas入れてからビルドし直したらめっちゃ速くなった

確認方法

import numpy
import scipy

numpy.__version__ # 1.9.3
numpy.show_config() # blas, lapack, atlasと一緒にビルドされているか確認できる

scipy.__version__ # 0.16.0
scipy.show_config() # numpyの場合と同様

どのくらい速くなるのか

以下のGaP-NMFのpython版ベンチマーク(マニアックですが)で、1.75倍速くなった。コメント参照
GaP-NMF short benchmark scripts for Python and Julia.

Juliaの方が遅くなって僕は涙目です

ATLASのインストール

ubuntuの場合は

sudo apt-get install libatlas-base-dev

とすればおk

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした