We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
upper_triangular_matrix_to_full_matrix
1 parent 48a31af commit 7716bddCopy full SHA for 7716bdd
SLAM/GraphBasedSLAM/graphslam/util.py
@@ -68,11 +68,10 @@ def upper_triangular_matrix_to_full_matrix(arr, n):
68
69
"""
70
triu0 = np.triu_indices(n, 0)
71
- triu1 = np.triu_indices(n, 1)
72
tril1 = np.tril_indices(n, -1)
73
74
mat = np.zeros((n, n), dtype=float)
75
mat[triu0] = arr
76
- mat[tril1] = mat[triu1]
+ mat[tril1] = mat.T[tril1]
77
78
return mat
0 commit comments