linalg:eye
(linalg:eye n)
Creates the n-by-n identity matrix: ones on the main diagonal, zeros everywhere else. Multiplying by it with linalg:matmul leaves a matrix unchanged, and it is a convenient reference operand for linalg:array-equal.
(linalg:eye n)
Creates the n-by-n identity matrix: ones on the main diagonal, zeros everywhere else. Multiplying by it with linalg:matmul leaves a matrix unchanged, and it is a convenient reference operand for linalg:array-equal.