Machine Learning, AI, Artificial Intelligence, Deep Learning, Neural Networks.
using np.diag. Symmetric matrix: equal to its own transpose (the entries are symmetric across the up-left to down-right diagonal). A matrix times its transpose is always symmetric. Unit vector: a vector whose L2 norm is 1. You can make a vector into a unit vector by dividing by its L2 norm.