vec¶ torch_sim.math.vec(M)[source]¶ Stack columns of M to construct a single vector. This is somewhat standard notation in linear algebra. Parameters: M (Tensor) – Input matrix Returns: Output vector Return type: Tensor