Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork11.9k
API: Add .mT attribute for arrays#23762
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
21 commits Select commitHold shift + click to select a range
23f3651 ENH: Add .mT attribute for arrays
Kai-Striegacdf850e TST: Fix test names to reflect test behaviour
Kai-Striega13f0a2e TST: Increase max_dims for matrix_transpose test
Kai-Striega086a919 TST: Use `np.broadcast_to` to save memory in test
Kai-Striega95da479 TST: Avoid using hypothesis in test case
Kai-Striegae33c002 TST/MAINT: Rename file to be more generic
Kai-Striega5c346a3 ENH: Raise ValueError for ndim < 2 in .mT
Kai-Striega58a0e0d TST: Add test for the existence of `matrix_transpose`
Kai-Striega710aaed ENH: Try to create a `matrix_transpose` function
Kai-Striega0304796 REV: Remove PyArray_MatrixTranspose from C-API
Kai-Striegabd40405 DOC: Add release note for matrix transpose
Kai-Striega8115919 TYP: Add typehint for new `.mT` attribute
Kai-Striega716e85c ENH: Include PyArray_MatrixTranspose in shape.h
Kai-Striega6185d19 Merge branch 'numpy:main' into mT
Kai-Striegaf510534 ENH/TST: First attempt to support MaskedArrays
Kai-Striega6a9a938 ENH: Make ma.MaskedArray.mT return a masked array in all cases
Kai-Striegad256239 TYP: ma: Add typehint for .mT
Kai-Striegae244a27 DOC: Document mT property for masked arrays
Kai-Striegaf43dfcc REL: Remove matrix_transpose function from release note
Kai-Striega7d3d371 DOC: Add documentation for `ndarray.mT`
Kai-Striega02529f1 DOC: Document version added
Kai-StriegaFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
TST: Increase max_dims for matrix_transpose test
The test generates random shapes of a given length. This was previously usedwith min_dims=3. This excludes arrays of dimension 0, 1, 2 which we want.Instead we test all dimensions up to 7.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit13f0a2efedf33b389b2bc55289e2852af364af8f
There are no files selected for viewing
2 changes: 1 addition & 1 deletionnumpy/core/tests/test_matrix_transpose.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.