Yes, you are right. I have just replaced this expression with `np.diff` instead. 

So basically, if X is CSC (resp CSR) then `indexes` should correspond to columns (resp the rows) the missing values (i.e., the `True` values in `mask`) belong to.