LinearAlgebra
|
compute the transpose of a Matrix, Vector, or scalar
|
|
compute the Hermitian (conjugate) transpose of a Matrix, Vector, or scalar
|
|
Calling Sequence
|
|
Transpose(A, ip, options)
A ^ +
A ^ %T
HermitianTranspose(A, ip, options)
A ^ *
A ^ %H
|
|
Parameters
|
|
A
|
-
|
Matrix, Vector, or scalar
|
ip
|
-
|
(optional) equation of the form inplace=true or false; specifies if output overwrites input
|
options
|
-
|
(optional); constructor options for the result object
|
|
|
|
|
Description
|
|
•
|
The Transpose(A) function computes the transpose of A.
|
|
If T := Transpose(A), then one of the following conditions holds:
|
–
|
if A is a Matrix, then T is a Matrix with ;
|
–
|
if A is a Vector, then T is a Vector containing the same elements as A, and opposite in orientation to A; or
|
–
|
if A is a scalar value, then .
|
•
|
The function computes the Hermitian transpose (dual) of A.
|
|
If H := HermitianTranspose(A), then one of the following conditions holds:
|
–
|
if A is a Matrix, then H is a Matrix with ;
|
–
|
if A is a Vector, then H is a Vector containing the conjugated elements of A, and opposite in orientation to A; or
|
–
|
if A is a scalar value, then .
|
•
|
can also be entered as or as . can also be entered as or as . These short forms do not require the LinearAlgebra package to be loaded first.
|
•
|
The inplace option (ip) determines where the result is returned. If given as inplace=true, the result overwrites the first argument. If given as inplace=false, or if this option is not included in the calling sequence, the result is returned in a new Matrix (or Vector).
|
|
The condition inplace=true can be abbreviated to inplace.
|
|
The inplace option must be used with caution since, if the operation fails, the original Matrix (or Vector) argument may be corrupted.
|
|
Note: For this function, the inplace option is only valid for input that is a Vector or a square Matrix.
|
•
|
The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Matrix or Vector constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list. If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).
|
•
|
The inplace and constructor options are mutually exclusive.
|
•
|
These functions are part of the LinearAlgebra package, and so they can be used in the form Transpose(..) or HermitianTranspose(..) only after executing the command with(LinearAlgebra). However, they can always be accessed through the long form of the command by using LinearAlgebra[Transpose](..) or LinearAlgebra[HermitianTranspose](..).
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (5) |
|
|
|
|
|
|