python3 numpy python.h_Numpy的矩阵乘法真慢啊!

哎,我已经崩溃了。不纠结了,死活就是这速度了!

Python 2.7.5 |Anaconda 1.8.0 (64-bit)| (default, Jul  1 2013, 12:37:52) [MSC v.1500 64 bit (AMD64)]

Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- An enhanced Interactive Python.

?         -> Introduction and overview of IPython's features.

%quickref -> Quick reference.

help      -> Python's own help system.

object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import numpy as np

Vendor:  Continuum Analytics, Inc.

Package: mkl

Message: trial mode expires in 30 days

In [2]: np.sho

np.short       np.show_config

In [2]: np.show_config()

lapack_opt_info:

libraries = ['mkl_lapack95_lp64', 'mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']

library_dirs = ['C:\\aroot\\stage\\libs']

define_macros = [('SCIPY_MKL_H', None)]

include_dirs = ['C:\\aroot\\stage\\include']

blas_opt_info:

libraries = ['mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']

library_dirs = ['C:\\aroot\\stage\\libs']

define_macros = [('SCIPY_MKL_H', None)]

include_dirs = ['C:\\aroot\\stage\\include']

lapack_mkl_info:

libraries = ['mkl_lapack95_lp64', 'mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']

library_dirs = ['C:\\aroot\\stage\\libs']

define_macros = [('SCIPY_MKL_H', None)]

include_dirs = ['C:\\aroot\\stage\\include']

blas_mkl_info:

libraries = ['mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']

library_dirs = ['C:\\aroot\\stage\\libs']

define_macros = [('SCIPY_MKL_H', None)]

include_dirs = ['C:\\aroot\\stage\\include']

mkl_info:

libraries = ['mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']

library_dirs = ['C:\\aroot\\stage\\libs']

define_macros = [('SCIPY_MKL_H', None)]

include_dirs = ['C:\\aroot\\stage\\include']

In [3]: a=np.random.random((10000,10000))

In [4]: %timeit np.dot(a,a)

1 loops, best of 3: 1min 16s per loop

【 在 guzongyuan (guzongyuan) 的大作中提到: 】

: 你最好用学校或者学术邮箱注册弄个带mkl的anaconda python,它还附带了numbapro之类的库。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值