Skip to content

Add powMatrix function (#455)#543

Open
shivanjali0108 wants to merge 1 commit into
ZigRazor:masterfrom
shivanjali0108:issue-455-add-matrix-pow
Open

Add powMatrix function (#455)#543
shivanjali0108 wants to merge 1 commit into
ZigRazor:masterfrom
shivanjali0108:issue-455-add-matrix-pow

Conversation

@shivanjali0108

Copy link
Copy Markdown

Fixes #455

  • Added powMatrix function to raise a graph adjacency matrix to a given power.
  • Uses binary exponentiation for efficiency.
  • Tested locally with small graphs to ensure correctness.

- Added powMatrix function to raise a graph adjacency matrix to a given power.
- Uses binary exponentiation for efficiency.
- Tested locally with small graphs to ensure correctness.
@shivanjali0108

Copy link
Copy Markdown
Author

Tested locally; works correctly on small graphs.

@wrcorcoran

Copy link
Copy Markdown

Open PR with the same, but more general, functionality: https://github.com/ZigRazor/CXXGraph/pull/463/commits

I'm currently extremely busy and haven't had the opportunity to update the CR. Please feel free to combine this CR with yours. Thanks!

@ZigRazor

ZigRazor commented Oct 6, 2025

Copy link
Copy Markdown
Owner

yes, please combine the code @shivanjali0108 so we can close the issue

@shivanjali0108

shivanjali0108 commented Oct 6, 2025 via email

Copy link
Copy Markdown
Author

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.

Define pow function for graph matrices

3 participants