Metadata-Version: 2.1
Name: accelasc
Version: 1.0.4
Summary: implementation of accel_asc algorithm for integer partitions
Home-page: https://github.com/anthony-aylward/accelasc
Author: Anthony Aylward
Author-email: aaylward@salk.edu
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# accelasc

Implementation of the `accel_asc` algorithm for integer partitions. See
[this stackoverflow post](https://stackoverflow.com/questions/10035752/elegant-python-code-for-integer-partitioning)
and [Jerome Kelleher's website](http://jeromekelleher.net/category/combinatorics.html).
See also the paper by Kelleher and O'Sullivan: [Generating All Partitions: A Comparison Of Two Encodings](https://arxiv.org/abs/0909.2331).

## Installation
```sh
pip3 install accelasc
```
or
```sh
pip3 install --user accelasc
```

## Usage

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


