Skip to main content

accelasc

Implementation of the accel_asc algorithm for integer partitions. See this stackoverflow post and Jerome Kelleher's website. See also the paper by Kelleher and O'Sullivan: Generating All Partitions: A Comparison Of Two Encodings.

Installation

pip3 install accelasc

or

pip3 install --user accelasc

Usage

from accelasc import accel_asc
tuple(accel_asc(5))
([1, 1, 1, 1, 1], [1, 1, 1, 2], [1, 1, 3], [1, 2, 2], [1, 4], [2, 3], [5])

Release files for accelasc 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for accelasc 1.0.4
File Size Uploaded
accelasc-1.0.4.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for accelasc 1.0.4
File Interpreter ABI Platform
accelasc-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / accelasc-1.0.4.tar.gz

Download URL accelasc-1.0.4.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
49f90fa6ef916734e8900dcafba86c4a2ffdb443cd1f2aada6a1dec29a02baf2
BLAKE2b-256 checksum
How to use checksums
eb5fcadc779110d2682c783f35bebb4fa5fa4f62d7c164dc05e04eeda93ec6aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.10

Release files / accelasc-1.0.4-py3-none-any.whl

Download URL accelasc-1.0.4-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c5a7446019ef53f5732ae9266c7e89903ea36c754f08e94376ccd0950b52b6b
BLAKE2b-256 checksum
How to use checksums
8f96b758086435425cadf99a2113c45eab379767fb2497ba5c665e0af2046232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.10

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page