def row_op(self, i, f):
        i0 = i*self.cols
        ri = self._mat[i0: i0 + self.cols]
        self._mat[i0: i0 + self.cols] = [ f(x, j) for x, j in zip(ri, list(range(self.cols))) ]
In-place operation on row ``i`` using two-arg functor whose args are
dataset/ETHPy150Open sympy/sympy/sympy/matrices/dense.py/MutableDenseMatrix.row_op