Numpy
Generate matrices A, with random Gaussian entries, B, a Toeplitz matrix, where A 2 Rn×m and B 2 Rm×m,
for n = 200, m = 500.
import numpy as np
from scipy.linalg import toeplitz
#建立矩阵A、B
n=200
m=500
A = np.random.randn(n,m)
B = toeplitz(range(m))
print(A)
print(B)
Exercise 9.1: Matrix operationsCalculate A + A, AAT, ATA and AB. Write a function that computes