Skip to content

Feat: Enhance Kronecker product to handle arbitrary dimension#3461

Merged
gwhitney merged 5 commits intojosdejong:v15from
gwhitney:fix-kron-1d-output
Apr 23, 2025
Merged

Feat: Enhance Kronecker product to handle arbitrary dimension#3461
gwhitney merged 5 commits intojosdejong:v15from
gwhitney:fix-kron-1d-output

Conversation

@gwhitney
Copy link
Copy Markdown
Collaborator

Resolves #1753.

This is an identical copy of #3455 (thanks @Delaney) but rebased onto v15, created so as to avoid force-pushing to a contributor's fork.

Delaney and others added 5 commits April 22, 2025 16:53
  * Corrects doc example
  * Factors out 1-dimensional Kronecker product
  * Reimplement Kronecker product recursively to support arbitrary dimension
  * Adds further tests, including up to 3D Kronecker products
@gwhitney gwhitney merged commit 72a2442 into josdejong:v15 Apr 23, 2025
8 checks passed
@gwhitney gwhitney deleted the fix-kron-1d-output branch April 23, 2025 00:08
@gwhitney gwhitney mentioned this pull request Apr 23, 2025
7 tasks
gwhitney added a commit that referenced this pull request Jul 3, 2025
Previously `math.kron()` always returned a 2D matrix, and could not handle 3D or greater arrays. Now it always returns an array of the max dimension of its arguments.

Resolves #1753.
---------

Co-authored-by: Delaney Sylvans <delaneysylvans@gmail.com>
@josdejong
Copy link
Copy Markdown
Owner

Published now in v15.0.0.

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.

3 participants