#NEWLINE# def _identity_matrix( n , domain ) : #NEWLINE# #INDENT# M = [ ( [ domain . zero ] * n ) for _ in range ( n ) ] #NEWLINE# for i in range ( n ) : #NEWLINE# #INDENT# M [ i ] [ i ] = domain . one #NEWLINE# #UNINDENT# return M