Given a 2D numpy array, i.e.;
import numpy as np
data = np.array([
[11,12,13],
[21,22,23],
[31,32,33],
[41,42,43],
])
I need to both create a new sub-array or modify the selected elements in place based on two masking vectors for the desired rows and columns;
rows = [False, False, True, True]
cols = [True, True, False]
Such that
print subArray
# [[31 32]
# [41 42]]
copyandview(as in the title) are very different things.