Skip to content

Commit 0630d66

Browse files
author
Release Manager
committed
gh-39758: Improve crosslink between matrix methods and small optimization As in the title. Also fix a few typos. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #39758 Reported by: user202729 Reviewer(s): Travis Scrimshaw
2 parents 7671733 + 9982416 commit 0630d66

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/sage/matrix/matrix2.pyx

+13-1
Original file line numberDiff line numberDiff line change
@@ -15697,6 +15697,10 @@ cdef class Matrix(Matrix1):
1569715697
Return the conjugate of self, i.e. the matrix whose entries are the
1569815698
conjugates of the entries of ``self``.
1569915699

15700+
.. SEEALSO::
15701+
15702+
:attr:`C`
15703+
1570015704
EXAMPLES::
1570115705

1570215706
sage: # needs sage.rings.complex_double sage.symbolic
@@ -15752,6 +15756,10 @@ cdef class Matrix(Matrix1):
1575215756
though there is substantial variation and some confusion with
1575315757
the use of that term.
1575415758

15759+
.. SEEALSO::
15760+
15761+
:meth:`conjugate`, :meth:`~.Matrix_dense.transpose`, :attr:`H`
15762+
1575515763
OUTPUT:
1575615764

1575715765
A matrix formed by taking the complex conjugate of every entry
@@ -18569,6 +18577,10 @@ cdef class Matrix(Matrix1):
1856918577
r"""
1857018578
Return the conjugate-transpose (Hermitian) matrix.
1857118579

18580+
.. SEEALSO::
18581+
18582+
:meth:`conjugate_transpose`
18583+
1857218584
EXAMPLES::
1857318585

1857418586
sage: A = matrix(QQbar, [[ -3, 5 - 3*I, 7 - 4*I], # needs sage.rings.number_field
@@ -18579,7 +18591,7 @@ cdef class Matrix(Matrix1):
1857918591
[ 5 + 3*I -1 - 6*I -3 - 6*I]
1858018592
[ 7 + 4*I 3 - 5*I 5 - 1*I]
1858118593
"""
18582-
return self.conjugate().transpose()
18594+
return self.conjugate_transpose()
1858318595

1858418596

1858518597
def _smith_diag(d, transformation=True):

src/sage/matrix/matrix_dense.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ cdef class Matrix_dense(matrix.Matrix):
114114
[1 2]
115115
[3 4]
116116
117-
``.T`` is a convenient shortcut for the transpose::
117+
:attr:`~sage.matrix.matrix2.Matrix.T` is a convenient shortcut for the transpose::
118118
119119
sage: A.T
120120
[1 3]

src/sage/matrix/matrix_double_dense.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1881,7 +1881,7 @@ cdef class Matrix_double_dense(Matrix_numpy_dense):
18811881
18821882
OUTPUT:
18831883
1884-
``U, S, V`` -- immutable matrices such that ``A = U*S*V.conj().transpose()``
1884+
``U, S, V`` -- immutable matrices such that ``A = U*S*V.conjugate_transpose()``
18851885
where `U` and `V` are orthogonal and `S` is zero off of the diagonal
18861886
18871887
Note that if ``self`` is m-by-n, then the dimensions of the

0 commit comments

Comments
 (0)