import numpy as np
x = np.arange(12).reshape(3, 4)
x
x[1, [3, -2, 0]]
x[1:, [0, 1, 3]]
mask = np.array([True, False, True, False])
x[:2, mask]
row = np.array([0, 2]).reshape(2, 1)
x[row, mask]

3e66c0b1067613127a0f9906fe8e0c7401b0fa9e
<mask token>

<mask token>
x
x[1, [3, -2, 0]]
x[1:, [0, 1, 3]]
<mask token>
x[:2, mask]
<mask token>
x[row, mask]

<mask token>
x = np.arange(12).reshape(3, 4)
x
x[1, [3, -2, 0]]
x[1:, [0, 1, 3]]
mask = np.array([True, False, True, False])
x[:2, mask]
row = np.array([0, 2]).reshape(2, 1)
x[row, mask]

import numpy as np
x = np.arange(12).reshape(3, 4)
x
x[1, [3, -2, 0]]
x[1:, [0, 1, 3]]
mask = np.array([True, False, True, False])
x[:2, mask]
row = np.array([0, 2]).reshape(2, 1)
x[row, mask]
