Comment Comment by seanhunter That is wildly disingenuous. Assuming you've imported numpy as np, you get an nxn identity matrix by doing np.identity(n) http://numpy.org/doc/stable/reference/generated/numpy.identi... parent seanhunter 1 year ago