returns a mask indicating where solutions live in the Ap matrix.
Returns a ‘mask’ (matrix with 1s or 0s) indicating where different solution types live in the Ap matrix.