MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / strip_lowerdiag

Function strip_lowerdiag

utils/general_utils.py:67–76  ·  view source on GitHub ↗
(L)

Source from the content-addressed store, hash-verified

65 return helper
66
67def strip_lowerdiag(L):
68 uncertainty = torch.zeros((L.shape[0], 6), dtype=torch.float, device="cuda")
69
70 uncertainty[:, 0] = L[:, 0, 0]
71 uncertainty[:, 1] = L[:, 0, 1]
72 uncertainty[:, 2] = L[:, 0, 2]
73 uncertainty[:, 3] = L[:, 1, 1]
74 uncertainty[:, 4] = L[:, 1, 2]
75 uncertainty[:, 5] = L[:, 2, 2]
76 return uncertainty
77
78def strip_symmetric(sym):
79 return strip_lowerdiag(sym)

Callers 1

strip_symmetricFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected