minihat

↗ HN profile [ 85.4 ms ] full profile
Karma
0
Created
()
Submissions
0
  1. When mixing basic slicing with an advanced index, NumPy moves the advanced index's subspace to the front, so in the example, A[0, :, B] produces a shape of (4, 2) rather than (2, 4). import numpy as np A =…