original_docstring: 
          Computes the determinant of the current Matrix instance
          by cofactors.
          @return (int|None)  The determinant if the matrix is square, else None
          
docstring: Computes the determinant of the current Matrix instance
  by cofactors.
  @return (int|None)  The determinant if the matrix is square, else None
docstring_tokens: Computes the determinant of the current Matrix instance by cofactors . @return ( int|None ) The determinant if the matrix is square else None
code: def determinant(self):
          """
          Computes the determinant of the current Matrix instance
          by cofactors.
          @return (int|None)  The determinant if the matrix is square, else None
          """
  
          if self.rows() != self.columns():
              return None
  
          def minor(matrix, i):
              minor = copy.deepcopy(matrix)
              del minor[0]
              for b in range(len(matrix)-1):
                  del minor[b][i]
              return minor
  
          def det(matrix):
              if len(matrix) == 1:
                  return matrix[0][0]
              else:
                  determinant = 0
                  for x in range(len(matrix)):
                      determinant += matrix[0][x] * (-1)**(2+x) * det(minor(matrix,x))
                  return determinant
  
          return det(self.__matrix)
code_tokens: def determinant ( self ) : if self . rows ( ) != self . columns ( ) : return None def minor ( matrix , i ) : minor = copy . deepcopy ( matrix ) del minor [ 0 ] for b in range ( len ( matrix ) - 1 ) : del minor [ b ] [ i ] return minor def det ( matrix ) : if len ( matrix ) == 1 : return matrix [ 0 ] [ 0 ] else : determinant = 0 for x in range ( len ( matrix ) ) : determinant += matrix [ 0 ] [ x ] * ( - 1 ) ** ( 2 + x ) * det ( minor ( matrix , x ) ) return determinant return det ( self . __matrix )
short_docstring: Computes the determinant of the current Matrix instance
  by cofactors.
short_docstring_tokens: Computes the determinant of the current Matrix instance by cofactors .
comment: """
          Computes the determinant of the current Matrix instance
          by cofactors.
          @return (int|None)  The determinant if the matrix is square, else None
          """