Atelier des rouesLab FR
Objects/Documentation

faces25.py

How far can I keep the same decoding matrix? · faces25.py

Download ↓
"""First new active constraint on each of four faithful-decoder perturbation rays."""
from fractions import Fraction as F
from itertools import combinations,product
import json
from jeu24 import faithful,load,table
from deficience21 import solve_square

def constraints(laws):
    for law in laws:
        for i,j in product((-1,1),repeat=2):
            yield ([i*sum(law[:2]),j*sum(law[2:])],i*law[0]+j*law[2])

def vertices(laws,e):
    lines=[(row,rhs+e) for row,rhs in constraints(laws)]
    lines+=[([1,0],1),([-1,0],0),([0,1],1),([0,-1],0)]
    out=set()

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.