Atelier des rouesLab FR
Objects/Documentation

increments.py

Reproducible check of XIII, included in the compression dossier.

Download ↓
"""Selected computational core from XIII, with a standalone exact control."""
from collections import defaultdict
from functools import lru_cache
from itertools import product
from math import factorial, prod
import json

@lru_cache(None)
def fac(n):
    return factorial(n)

def det(M):
    a = [row[:] for row in M]
    n = len(a)
    sign = 1
    prev = 1

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.