From 14ee25087e9d46265985825ad5d028c67f3b9491 Mon Sep 17 00:00:00 2001 From: Frederike Duembgen Date: Fri, 11 Aug 2023 09:34:05 -0400 Subject: [PATCH] Rename l to h --- poly_matrix/poly_matrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poly_matrix/poly_matrix.py b/poly_matrix/poly_matrix.py index 5951888..aa588d7 100644 --- a/poly_matrix/poly_matrix.py +++ b/poly_matrix/poly_matrix.py @@ -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 @@ -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?