(m)
return matrix_of_minors
get the matrix of minors and alternate signs
get the matrix of minors and alternate signs
get the matrix of minors and alternate signs
def get_matrix_of_minors(m):
    """get the matrix of minors and alternate signs"""
    matrix_of_minors = [[0 for i in range(len(m))] for j in range(len(m))]
    for row in range(len(m)):
        for col in range(len(m[0])):
            if (row + col) % 2 == 0:
                sign = 1
            else:
                sign = -1
            matrix_of_minors[row][col] = sign * get_determinant(get_minor(m, row, col))
    return matrix_of_minors
def get_matrix_of_minors ( m ) : matrix_of_minors = [ [ 0 for i in range ( len ( m ) ) ] for j in range ( len ( m ) ) ] for row in range ( len ( m ) ) : for col in range ( len ( m [ 0 ] ) ) : if ( row + col ) % 2 == 0 : sign = 1 else : sign = - 1 matrix_of_minors [ row ] [ col ] = sign * get_determinant ( get_minor ( m , row , col ) ) return matrix_of_minors