Skip to content

convolve() is agnostic to endianness#997

Merged
bbayles merged 1 commit intomore-itertools:masterfrom
rhettinger:convolve_doc
Jun 5, 2025
Merged

convolve() is agnostic to endianness#997
bbayles merged 1 commit intomore-itertools:masterfrom
rhettinger:convolve_doc

Conversation

@rhettinger
Copy link
Copy Markdown
Contributor

Unlike the other polynomial functions, convolve() has no intrinsic notion of endianness. It's big endian in, big endian out and little endian in, little endian out.

list(convolve([1, -1, -20], [1, -3]))
[1, -4, -17, 60]
list(convolve([-20, -1, 1], [-3, 1]))
[60, -17, -4, 1]

@bbayles bbayles merged commit 88e0c66 into more-itertools:master Jun 5, 2025
6 checks passed
@rhettinger rhettinger deleted the convolve_doc branch June 27, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants