Wedgie: Difference between revisions

Derivation from mapping matrices: expand. + quest for inverse operation
Line 68: Line 68:
{{Todo|inline=1| expand }}
{{Todo|inline=1| expand }}


== Derivation from mapping matrices ==
== Conversion ==
{{Todo|inline=1| expand }}
=== Mapping matrix to wedgie ===
The wedgie may be found from the mapping by taking the {{w|determinant}}s of the mapping's column slices that correspond to all the combinations of formal primes.


Below is a script that finds the wedgie from a mapping matrix in [https://www.python.org/ Python], using [https://scipy.org/ Scipy].  
Below is a [https://www.python.org/ Python] script that finds the wedgie from a mapping matrix, using [https://scipy.org/ Scipy].  


<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
Line 81: Line 82:
     combinations = itertools.combinations (range (breeds.shape[1]), breeds.shape[0])
     combinations = itertools.combinations (range (breeds.shape[1]), breeds.shape[0])
     wedgie = np.array ([linalg.det (breeds[:, entry]) for entry in combinations])
     wedgie = np.array ([linalg.det (breeds[:, entry]) for entry in combinations])
    # normalize for a positive first entry
     if wedgie[0] < 0:
     if wedgie[0] < 0:
         wedgie *= -1
         wedgie *= -1
Line 91: Line 94:
     return wedgie
     return wedgie
</syntaxhighlight>
</syntaxhighlight>
=== Wedgie to mapping matrix ===
{{Todo|inline=1| expand }}


== Derivation from edo joins ==
== Derivation from edo joins ==