def _arg1_for_noncanonical(self, M):
        data, indices, indptr = _same_sum_duplicate(M.data, M.indices,
                                                    indptr=M.indptr)
        # unsorted
        for start, stop in izip(indptr, indptr[1:]):
            indices[start:stop] = indices[start:stop][::-1].copy()
            data[start:stop] = data[start:stop][::-1].copy()
        return data, indices, indptr
Return non-canonical constructor arg1 equivalent to M
dataset/ETHPy150Open scipy/scipy/scipy/sparse/tests/test_base.py/_NonCanonicalCompressedMixin._arg1_for_noncanonical