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

ENH: Allow sparse_mtx.transpose(axes=(1, 0)) #19162

Merged
merged 1 commit into from Aug 30, 2023

Conversation

ivirshup
Copy link
Contributor

@ivirshup ivirshup commented Aug 30, 2023

Reference issue

Closes #19161

What does this implement/fix?

Allows sparse_mtx.transpose(axes=(1, 0)), since that is equivalent to sparse_mtx.T

Additional information

Probably an enhancement, maybe a bug fix?

Copy link
Member

@perimosocordiae perimosocordiae left a comment

Choose a reason for hiding this comment

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

Makes sense, LGTM

@tylerjereddy tylerjereddy changed the title Allow sparse_mtx.transpose(axes=(1, 0)) ENH: Allow sparse_mtx.transpose(axes=(1, 0)) Aug 30, 2023
@tylerjereddy tylerjereddy added enhancement A new feature or improvement scipy.sparse labels Aug 30, 2023
@tylerjereddy tylerjereddy added this to the 1.12.0 milestone Aug 30, 2023
Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

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

Alright, core dev approval and CI is happy with new test, and the diff is simple enough.

I've labelled as an enhancement, if you relabel as bug fix then add backport candidate label if you can remember.

I guess there is some confusion about how this might work with array api transpose, but sparse + array API is bit farther away anyway I think.

@tylerjereddy tylerjereddy merged commit 692cefe into scipy:main Aug 30, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement scipy.sparse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: allow sparse_matrix.transpose(axes=(1, 0))
3 participants