models/py3Dv1/engine/utils/matrix.py
def submatrix(self, row: int, col: int) -> Matrix:
        """Form the matrix resulting from removing the specified row and col
        from self.
        Returns:
            Matrix - self without row or col.
        """
        temp = deepcopy(self)
        del temp.val[row]
        for i in range(self.row):
            del temp.val[i][col]

        return temp
Form the matrix resulting from removing the specified row and col
        from self.
        Returns:
            Matrix - self without row or col.
        
Form the matrix resulting from removing the specified row and col
from self.
Form the matrix resulting from removing the specified row and col from self .
def submatrix(self, row: int, col: int) -> Matrix:
        temp = deepcopy(self)
        del temp.val[row]
        for i in range(self.row):
            del temp.val[i][col]
        return temp
def submatrix ( self , row : int , col : int ) -> Matrix : temp = deepcopy ( self ) del temp . val [ row ] for i in range ( self . row ) : del temp . val [ i ] [ col ] return temp
Form the matrix resulting from removing the specified row and col
from self.
Form the matrix resulting from removing the specified row and col from self .
"""Form the matrix resulting from removing the specified row and col
        from self.
        Returns:
            Matrix - self without row or col.
        """
self without row or col.
self without row or col .
self
row
int
col
int