(self, rhs)
return type(self)(newmat)
Concatenates two matrices along self's last and rhs's first column

        Examples
        ========

        >>> from sympy import zeros, ones
        >>> M = zeros(3)
        >>> V = ones(3, 1)
        >>> M.row_join(V)
        Matrix([
        [0, 0, 0, 1],
        [0, 0, 0, 1],
        [0, 0, 0, 1]])

        See Also
        ========

        row
        col_join
Concatenates two matrices along self's last and rhs's first column
Concatenates two matrices along self s last and rhs s first column
def row_join(self, rhs):
        """Concatenates two matrices along self's last and rhs's first column

        Examples
        ========

        >>> from sympy import zeros, ones
        >>> M = zeros(3)
        >>> V = ones(3, 1)
        >>> M.row_join(V)
        Matrix([
        [0, 0, 0, 1],
        [0, 0, 0, 1],
        [0, 0, 0, 1]])

        See Also
        ========

        row
        col_join
        """
        if self.rows != rhs.rows:
            raise ShapeError(
                "`self` and `rhs` must have the same number of rows.")

        from sympy.matrices import MutableMatrix
        newmat = MutableMatrix.zeros(self.rows, self.cols + rhs.cols)
        newmat[:, :self.cols] = self
        newmat[:, self.cols:] = rhs
        return type(self)(newmat)
def row_join ( self , rhs ) : if self . rows != rhs . rows : raise ShapeError ( "`self` and `rhs` must have the same number of rows." ) from sympy . matrices import MutableMatrix newmat = MutableMatrix . zeros ( self . rows , self . cols + rhs . cols ) newmat [ : , : self . cols ] = self newmat [ : , self . cols : ] = rhs return type ( self ) ( newmat )