Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,3 @@ updates:
schedule:
interval: "weekly"
day: "friday"

- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,26 @@

[![Tests](https://github.com/eggzec/polpack/actions/workflows/test.yml/badge.svg)](https://github.com/eggzec/polpack/actions/workflows/test.yml)
[![Documentation](https://github.com/eggzec/polpack/actions/workflows/docs.yml/badge.svg)](https://github.com/eggzec/polpack/actions/workflows/docs.yml)
[![codecov](https://codecov.io/github/eggzec/polpack/graph/badge.svg)](https://codecov.io/github/eggzec/polpack)

[![License: LGPL-2.1](https://img.shields.io/badge/License-LGPL%202.1-blue.svg)](LICENSE)
[![PyPI Downloads](https://img.shields.io/pypi/dm/polpack.svg?label=PyPI%20downloads)](https://pypi.org/project/polpack/)
[![Python versions](https://img.shields.io/pypi/pyversions/polpack.svg)](https://pypi.org/project/polpack/)

`polpack` is a high-performance Python library for evaluating special functions and recursively-defined polynomial families. The numerical core is written in Fortran and exposed via a Pythonic interface with comprehensive Google-style docstrings.
`polpack` is a high-performance Python library for evaluating special functions and recursively-defined polynomial families. The numerical core is written in Fortran and compiled via `f2py`, providing efficient routines for mathematical and combinatorial computations.

It includes routines to evaluate classic families such as **Bernoulli**, **Chebyshev**, **Gegenbauer**, **Hermite**, **Laguerre**, and **Legendre** polynomials, among others.

## Quick example

```python
import numpy as np
import polpack

# Example: Compute Bell numbers up to order 10
b = np.zeros(11, dtype=np.int32, order='F')
polpack.bell(10, b)
print(f"Bell numbers: {b}")
# Example: Compute Bell numbers
bell = np.zeros(11, dtype=np.int32)
polpack.bell(10, bell)
print(f"Bell numbers: {bell}")
```

## Installation
Expand All @@ -33,7 +36,7 @@ Requires Python 3.10+ and NumPy. See the [full installation guide](https://eggze

## Documentation

- [Theory](https://eggzec.github.io/polpack/theory/) — mathematical background
- [Theory](https://eggzec.github.io/polpack/theory/) — mathematical background, polynomial families, and special functions
- [Quickstart](https://eggzec.github.io/polpack/quickstart/) — runnable examples
- [API Reference](https://eggzec.github.io/polpack/api/) — function signatures and parameters
- [References](https://eggzec.github.io/polpack/references/) — literature citations
Expand Down
12 changes: 10 additions & 2 deletions bin/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@

def run_command(command, cwd=None):
if cwd is None:
logger.warning("No working directory specified. Using current directory.")
logger.warning(
"No working directory specified. Using current directory."
)
cwd = Path.cwd()
else:
cwd = Path(cwd)
Expand Down Expand Up @@ -80,7 +82,13 @@ def clean():
run_command("uv pip uninstall polpack")

for entry in Path("").iterdir():
if entry.name in ["dist", "build", "lib", ".pytest_cache", ".ruff_cache"]:
if entry.name in [
"dist",
"build",
"lib",
".pytest_cache",
".ruff_cache",
]:
logger.info(f"Removing '{entry}'")
shutil.rmtree(entry)
if entry.name == "bin" and entry.is_dir():
Expand Down
Loading
Loading