Godtone
Joined 17 December 2020
→My Python 3 code: add utility function for converting a xen wiki style temperament to a list of lists where each list (row) contained (in the list of lists) represents a generator |
→My Python 3 code: add identity_M (identity matrix) |
||
| Line 1,215: | Line 1,215: | ||
return M | return M | ||
def identity_M(dim): # dim by dim identity matrix (of dimension dim); self-explanatory | |||
return sum([[ [0]*i + [1] + [0]*(dim-1-i) for i in range(dim) ]],[]) | |||
</syntaxhighlight> | </syntaxhighlight> | ||