import numpy as np def linear_transformation(X, A): transformed_vector = np.matmul(X, A) return transformed_vector X = np.array([-1, 2]) A = np.array([[1, -2], [3, 0]]) linear_transformation(X, A)