MCPcopy Create free account
hub / github.com/Improbable-AI/VisionProTeleop / matrix_from_array

Function matrix_from_array

utils/viser_tracking_visualizer.py:170–172  ·  view source on GitHub ↗

Convert a 16-element column-major array to a 4x4 matrix.

(arr: list[float])

Source from the content-addressed store, hash-verified

168# ============================================================================
169
170def matrix_from_array(arr: list[float]) -> np.ndarray:
171 """Convert a 16-element column-major array to a 4x4 matrix."""
172 return np.array(arr, dtype=np.float64).reshape(4, 4, order='F')
173
174
175def get_position(matrix: np.ndarray) -> np.ndarray:

Callers 5

extract_hand_positionsFunction · 0.70
_precompute_analyticsMethod · 0.70
_update_video_frameMethod · 0.70
_update_sceneMethod · 0.70

Calls 1

reshapeMethod · 0.45

Tested by

no test coverage detected