Skip to content

Commit 7cb9794

Browse files
authored
Apply suggestion from @leonlan
1 parent ac5ba93 commit 7cb9794

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vrplib/parse/parse_distances.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def from_lower_row(data: np.ndarray) -> np.ndarray:
111111
flattened = np.concatenate(data).astype(float)
112112

113113
# The flattened data represents the lower triangle of a symmetric matrix.
114-
# Derive the matrix size (https://en.wikipedia.org/wiki/Triangular_number).
114+
# See https://en.wikipedia.org/wiki/Triangular_number.
115115
# m = n * (n - 1) / 2 => n = (1 + sqrt(1 + 8m)) / 2
116116
n = (1 + int((1 + 8 * flattened.size) ** 0.5)) // 2
117117

0 commit comments

Comments
 (0)