returns a mask indicating where primary solutions live in the Am matrix.
Returns a ‘mask’ (matrix with 1s or 0s) indicating where primary solutions live in the Am matrix.