Back to basics: Linear Algebra – Calculating the diagonal of a multi-dimensional matrix
Recently I had the need to calculate the diagonal of a matrix. Initially I thought, wow, here we go again: And initially this worked. But then I realized that it […]