Machine Learning, Deep Learning, Data Science, Tutorial, Mathematics.
off-diagonal entries are zero, it can also have zeroes on the main diagonal too. diag(v) is a square diagonal matrix with entries of vector v in the main diagonal. Let’s say we had the situation of Ax = b, we can simplify the situation to diag(v)x = b. This is really great because diag(v)x is equal