compute the transpose of a Matrix, Vector, or scalar - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Standard : LinearAlgebra/Transpose

LinearAlgebra[Transpose] - compute the transpose of a Matrix, Vector, or scalar

LinearAlgebra[HermitianTranspose] - 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) BooleanOpt(inplace); 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:

A:=1,2,w|2,6,x|3,7,y|4,8,z

A:=12342678wxyz

(1)

TransposeA

12w26x37y48z

(2)

A%T

12w26x37y48z

(3)

V:=a,b,c

V:=abc

(4)

HermitianTransposeV,inplace=true:

V

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

(5)

V%H

abc

(6)

HermitianTransposex

x&conjugate0;

(7)

See Also

Matrix, type[BooleanOpt], Vector


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam