Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more permutation functionality #334

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

jlogan03
Copy link
Collaborator

@jlogan03 jlogan03 commented Sep 4, 2023

  • Add private functions permute_inner and permute_outer that separate the permutation of inner and outer dimensions as found in transform_mat_papt
  • Add public functions permute_rows and permute_cols that select either permute_inner or permute_outer depending on storage
  • Add public function transform_mat_paq that mirrors transform_mat_papt but allows different permutations for rows and cols and allows nonsquare matrices
  • Use transform_mat_paq to test umfpack bindings' numeric factorization outputs
    • Incidentally macroize umfpack tests to reduce boilerplate overhead

@jlogan03 jlogan03 marked this pull request as draft September 4, 2023 20:30
start buildinng up a test of directly using umfpack's numeric factorization

get umfpack factorized components working for case where P==Q and prototype row permutation function

add PAQt variation of transform_mat_papt and use it for umfpack test'

macroize umfpack tests. remove unfinished permutation function.

handle identity permutations

add permute_rows and permute_cols

use permute_rows and permute_cols to clean up transform_mat_paqt

rename transform_mat_paqt to transform_mat_paq

add unit tests for transform_mat_paq

add tests of permute_rows and permute_cols
@jlogan03 jlogan03 marked this pull request as ready for review September 4, 2023 20:43
Copy link
Collaborator

@mulimoen mulimoen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see anything obviously wrong so I'll approve this

@jlogan03 jlogan03 merged commit f03627f into sparsemat:master Sep 6, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants