Can I Efficiently Map This Matrix to a Vector with Numpy Functions?
Suppose I have a 27×27 ndarray
of integers A that I want to reduce to a 25-length vector b such that it contains the following values (in some order):
Suppose I have a 27×27 ndarray
of integers A that I want to reduce to a 25-length vector b such that it contains the following values (in some order):