Numpy

  • creation
  • slicing : is view
  • fancy indexing : is copy
  • arithmetic operators apply element wise, new array is created
  • universal functions(ufunc), element wise
  • different type upcast to more general one
  • arr.flatten() make a copy, arr.ravel() make a viewf

References:
1. http://wiki.scipy.org/Tentative_NumPy_Tutorial
2. http://scipy-lectures.github.io/intro/numpy/array_object.html

你可能感兴趣的:(numpy)