¡@

Home 

python Programming Glossary: arr_1d

Why is numpy's einsum faster than numpy's built in functions?

http://stackoverflow.com/questions/18365073/why-is-numpys-einsum-faster-than-numpys-built-in-functions

difference will show up in microseconds not milliseconds arr_1D np.arange 500 dtype np.double large_arr_1D np.arange 100000.. milliseconds arr_1D np.arange 500 dtype np.double large_arr_1D np.arange 100000 dtype np.double arr_2D np.arange 500 2 dtype.. best of 3 694 ms per loop Outer product np.all np.outer arr_1D arr_1D np.einsum 'i k ik' arr_1D arr_1D True timeit np.outer..