Dual list

From Xenharmonic Wiki
Jump to: navigation, search

Definition

If A is an integral matrix, denote by Saturate(A) the integral matrix which is the saturation of A, defined in terms of the right reducing matrix to Smith normal form. We may clean the result up a little by LLL reduction, so let Sat(A) = LLL(Saturate(A)). The square matrix with rational coefficients A`A, where A` is the pseudoinverse of A, is an nxn projection matrix, where n is the number of columns of A. Let us also define Clear(P) to be the rational number matrix P cleared of denominators by multiplying through the rows by the LCM of the denominators, and Hrm(A) to be the Hermite reduction of A, with any rows consisting of zeros removed. We may combine these into the dual list function: Dulist(A) = Sat(Hrm(Clear(I - A`A))), where I is the nxn identity matrix.

The interest of the dual list stems from the fact that if A is a list of vals defining a temperament, then Dulist(A) is a list of monzos defining the same temperament, and conversely--Dulist applied to a list of monzos defining a temperament gives a list of vals defining the same temperament.

Examples

Dulist([<31 49 72 87 107|, <41 65 95 115 142|, <72 114 167 202 249|]) = [|-3 2 -1 2 -1>, |-2 -3 -1 2 1>, |-2 0 3 -3 1>]

Dulist([|-3 2 -1 2 -1>, |-2 -3 -1 2 1>, |-2 0 3 -3 1>]) = [<1 1 3 3 2|, <0 6 -7 -2 15|]

Dulist([<1 1 3 3 2|, <0 6 -7 -2 15|]) = [|-3 2 -1 2 -1>, |-2 -3 -1 2 1>, |-2 0 3 -3 1>]