HermitianTranspose - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

Transpose

  

compute the transpose of a Matrix, Vector, or scalar

  

HermitianTranspose

  

compute the Hermitian (conjugate) transpose of a Matrix, Vector, or scalar

 

Calling Sequence

Parameters

Description

Examples

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 Ti,j=Aj,i;

– 

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 T=A.

• 

The HermitianTransposeA 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 Hi,j=Aj,i&conjugate0;;

– 

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 H=A&conjugate0;.

• 

TransposeA can also be entered as A+ or as A%T.  HermitianTransposeA can also be entered as A* or as A%H.  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

withLinearAlgebra:

A1,2,w|2,6,x|3,7,y|4,8,z

A12342678wxyz

(1)

TransposeA

12w26x37y48z

(2)

A%T

12w26x37y48z

(3)

Va,b,c

Vabc

(4)

HermitianTransposeV,inplace=true:

V

a&conjugate0;b&conjugate0;c&conjugate0;

(5)

V%H

abc

(6)

HermitianTransposex

x&conjugate0;

(7)

See Also

Matrix

Vector