Skip to main content

Latin Squares and Related Designs.

Project description

Created Wed Aug 8 15:39:10 BST 2012. Last updated Mon Sep 30 13:59:23 BST 2013.


Ryser is a Python package for latin squares and related designs.

Example: Hall Numbers

Here is a demo which computes Hall numbers.

>>> import ryser
>>> from ryser.examples import eg3, fail4
>>> S = fail4[0]
>>> hall_nums = ryser.hall.symmetric_numbers(eg3, S)
>>> print "Hall numbers: {}".format(hall_nums)
Hall numbers: [0, 1, 2, 2, 3, 3, 4, 4]
>>> print "Sum of Hall numbers: {}".format(sum(hall_nums))
Sum of Hall numbers: 19

Test Hall inequalities:

>>> ryser.hall.inequality_on_cells(eg3, S)
>>> ryser.hall.symmetric_inequality_on_cells(eg3, S)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ryser, version 0.0.11
Filename, size File type Python version Upload date Hashes
Filename, size ryser-0.0.11.tar.gz (33.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page