Skip to content

Commit

Permalink
Remove obsolete adjacency definition in make_symmetric method
Browse files Browse the repository at this point in the history
  • Loading branch information
holmesco committed Sep 24, 2024
1 parent 9c7b562 commit 722d2c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions poly_matrix/poly_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ def make_symmetric(self):
mat = self.matrix[key1][key2] / 2
self.matrix[key1][key2] = mat
self.__setitem__((key2, key1), val=mat.T, symmetric=False)
# Align variable list and adjacency
# Align variable list
self.variable_dict_j = self.variable_dict_i
self.adjacency_j = self.adjacency_i
# Set flag
self.symmetric = True

Expand Down

0 comments on commit 722d2c6

Please sign in to comment.