Skip to content

Commit

Permalink
Rename l to h
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederike Duembgen committed Aug 11, 2023
1 parent 4854a0a commit 14ee250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poly_matrix/poly_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def init_from_row_list(row_list, row_labels=None):
len(mat.variable_dict_i) == 1
), f"found matrix in row_list that is not a row! "
for key in mat.variable_dict_j:
poly_vstack[label, key] = mat["l", key]
poly_vstack[label, key] = mat["h", key]
return poly_vstack

@staticmethod
Expand Down Expand Up @@ -607,7 +607,7 @@ def get_vector_from_theta(self, theta):
assert len(theta_i) == k
vector_dict[f"x{i}"] = theta_i
vector_dict[f"z{i}"] = np.linalg.norm(theta_i[:d]) ** 2
vector_dict["l"] = 1.0
vector_dict["h"] = 1.0
return self.get_vector(**vector_dict)

# TODO(FD) specific to range-only & LDL implementation. Move to subclass?
Expand Down

0 comments on commit 14ee250

Please sign in to comment.