human
What is a good Python program to turn a matrix into a vector.
assistant
Here is a Python program to turn a matrix into a vector

import numpy as np

def __matrix_to_vector(matrix):
    """
    Turn a matrix into a vector.
    """
    return matrix.flatten()

# Enter the matrix
matrix = np.array([[1,2,3],[4,5,6]])

# Calling the function
print((__matrix_to_vector(matrix)))

#Example Output
# [1 2 3 4 5 6]

#Remember to inspect code for bugs.