Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
seberg merged 21 commits intonumpy:mainfromKai-Striega:mT
Jun 21, 2023
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-StriegaMay 15, 2023
cdf850e
TST: Fix test names to reflect test behaviour
Kai-StriegaMay 15, 2023
13f0a2e
TST: Increase max_dims for matrix_transpose test
Kai-StriegaMay 15, 2023
086a919
TST: Use `np.broadcast_to` to save memory in test
Kai-StriegaMay 17, 2023
95da479
TST: Avoid using hypothesis in test case
Kai-StriegaMay 17, 2023
e33c002
TST/MAINT: Rename file to be more generic
Kai-StriegaMay 17, 2023
5c346a3
ENH: Raise ValueError for ndim < 2 in .mT
Kai-StriegaMay 17, 2023
58a0e0d
TST: Add test for the existence of `matrix_transpose`
Kai-StriegaMay 20, 2023
710aaed
ENH: Try to create a `matrix_transpose` function
Kai-StriegaMay 20, 2023
0304796
REV: Remove PyArray_MatrixTranspose from C-API
Kai-StriegaMay 22, 2023
bd40405
DOC: Add release note for matrix transpose
Kai-StriegaMay 22, 2023
8115919
TYP: Add typehint for new `.mT` attribute
Kai-StriegaMay 26, 2023
716e85c
ENH: Include PyArray_MatrixTranspose in shape.h
Kai-StriegaMay 30, 2023
6185d19
Merge branch 'numpy:main' into mT
Kai-StriegaMay 31, 2023
f510534
ENH/TST: First attempt to support MaskedArrays
Kai-StriegaJun 12, 2023
6a9a938
ENH: Make ma.MaskedArray.mT return a masked array in all cases
Kai-StriegaJun 12, 2023
d256239
TYP: ma: Add typehint for .mT
Kai-StriegaJun 12, 2023
e244a27
DOC: Document mT property for masked arrays
Kai-StriegaJun 12, 2023
f43dfcc
REL: Remove matrix_transpose function from release note
Kai-StriegaJun 12, 2023
7d3d371
DOC: Add documentation for `ndarray.mT`
Kai-StriegaJun 12, 2023
02529f1
DOC: Document version added
Kai-StriegaJun 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
TST: Fix test names to reflect test behaviour
The lower dimensional (1d and 2d) tests compare the behaviour of `.mT` against`.T` not swapaxes.
  • Loading branch information
@Kai-Striega
Kai-Striega committedMay 15, 2023
commitcdf850ed0eaa5f4339d74c33eb130d0265c142d1
4 changes: 2 additions & 2 deletionsnumpy/core/tests/test_matrix_transpose.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,12 +6,12 @@
from numpy.testing import assert_array_equal


deftest_matrix_transpose_equals_swapaxes_1d():
deftest_matrix_transpose_equals_transpose_1d():
arr = np.arange(48)
assert_array_equal(arr.T, arr.mT)


deftest_matrix_transpose_equals_swapaxes_2d():
deftest_matrix_transpose_equals_transpose_2d():
arr = np.arange(48).reshape((6, 8))
assert_array_equal(arr.T, arr.mT)

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp