Source: https://www2.hawaii.edu/~jonghyun/classes/S18/CEE696/files/07_numpy_intro.pdf