Numpy Note 2

Ndarray object's internal principle

  • a pointer to array
  • dtype
  • shape (tuple)
  • stride np.ones((3, 4, 5), dtype = np.float64).stride

Advanced array operation

Broadcasting

Ufunc advanced application

Struction and record array

More array

Matrix class

Input and output of advanced array

Performance