Is there a way to mathematically transform a vector to another with values of the first one being the indices of the second one?
For example Y=[1 0 0 0 1 1 0 0 0] and X=[1 5 6]
So X shows the indices of Y elements equal to 1, while others are 0.
Could there be a matrix Q that could transform X to Y where Y=XQ?