I've search on author's github and pypi, but could not find any example of using this package. The author mentioned here that this package is fully vectorized. In below example, I would like to find the index of each element of Y
in X
. Could you please elaborate on how to do so?
import numpy_indexed as npi
X = np.array([0, 4, 3, 5, 1, 2])
Y = np.array([0, 1, 2, 3, 4, 5])
My intended result is [0, 4, 5, 2, 1, 3]
.