Identity matrix in Julia

Given using LinearAlgebra, the most julianic way of expressing the identity matrix is: This answer may seem trite, but it is also kind of profound. The whole point of the operator I is that in the vast majority of cases where users want an identity matrix, it is not necessary to actually instantiate that matrix. Let’s say you want … Read more