Blog posts

2025

Generating r-Stirling Numbers of the Second Kind with Python

5 minute read

Published:

In this blog post, we will explore the r-Stirling numbers of the second kind, a generalization of the well-known Stirling numbers of the second kind. We will see how to generate them using a recursive Python function and the scipy.special method for stirling numbers of the second kind. We will also discuss how to use and how to create a NumPy ndarray of these numbers.

Critiquing code via AI

12 minute read

Published:

How to generate code reviews with the suggested changes API automatically.

2024

On subsets and orderings

8 minute read

Published:

If you’re using a recent version of SciPY you might be using this idea already and not even know.