エラーメッセージは下記
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
atlasもlapackもblasも入れてなかった。
yumで入れる。
yum install atlas-devel lapack-devel blas-devel
これで通った。
エラーメッセージは下記
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
atlasもlapackもblasも入れてなかった。
yumで入れる。
yum install atlas-devel lapack-devel blas-devel
これで通った。
sortして連番になっていたindexが乱れた時に振り直す想定。
下記のようなカラムの数が一定でないtsvを読み込みたかった。
105497 101731 90359 107575 105320 76175 96971 95604 109100 72563 105730 109194 96971 95604
下記のようなエラーが出た場合。
ImportError: cannot import name _tkagg
tk-devを入れてmatplotlibを入れ直したら動くようになった。
下記、Ubuntuの場合
# tk-devを入れる sudo apt-get install tk-dev # matplotlibの入れ直し sudo pip uninstall matplotlib sudo pip install matplotlib
公式サイトにインストール手順的なものは載っている。
http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html
が、この手順でインストールを進めると、configureでffmpegがないと言われたり、makeでpython周りで落ちたりとうまく入らなかった。 続きを読む
公式サイトの説明によると、@inboundsはこんな意味らしい。
Use @inbounds to eliminate array bounds checking within expressions. Be certain before doing this. If the subscripts are ever out of bounds, you may suffer crashes or silent corruption. http://julia.readthedocs.org/en/latest/manual/performance-tips/
つまり、@inboundsを使うと配列の境界チェックしなくなって、境界の外に対してアクセスするとクラッシュしたりするということらしい。
境界チェックがなくなる分、パフォーマンス的には若干浮くことになる。続きを読む