import numpy as np
a = np.array([[1,2,3],[1,2,3],[1,2,3]])
# print(a)
# print(a ** 2)
c = np.array([1,2,3])
b = np.array([1,2,3])
# print(np.hstack(c) * np.vstack(b))
print(c.reshape(3,1) * b.reshape(1,3))
print(c * b)
print(c.shape)
print(b.shape)
[[1 2 3]
[2 4 6]
[3 6 9]]
[1 4 9]
(3,)
(3,)