Transpose - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


LinearAlgebra[Modular]

  

Transpose

  

compute the transpose of a mod m Matrix or Vector

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Transpose(m, A, inplace)

Parameters

m

-

modulus

A

-

mod m Matrix or Vector

inplace

-

(optional) keyword for inplace operation on square Matrix

Description

• 

The Transpose function returns the transpose of the input mod m Matrix or Vector.

  

It uses the more flexible mod m Copy function to compute the transpose.

• 

If A is a square Matrix, the transpose can be performed in-place.

• 

This command is part of the LinearAlgebra[Modular] package, so it can be used in the form Transpose(..) only after executing the command with(LinearAlgebra[Modular]).  However, it can always be used in the form LinearAlgebra[Modular][Transpose](..).

Examples

> 

with⁡LinearAlgebraModular:

> 

p≔97

p≔97

(1)
> 

M≔Mod⁡p,Matrix⁡3,4,i,j↦rand⁡,integer

M≔779610865836802244396039

(2)
> 

Transpose⁡p,M

775844963639108060862239

(3)
> 

V1≔Mod⁡p,Vectorrow⁡3,i↦rand⁡,float8

V1≔43.12.55.

(4)
> 

Transpose⁡p,V1

43.12.55.

(5)
> 

V2≔Mod⁡p,Vectorcolumn⁡3,i↦rand⁡,float8

V2≔2.24.71.

(6)
> 

Transpose⁡p,V2

2.24.71.

(7)
> 

Copy⁡p,V2,transpose

2.24.71.

(8)
> 

Multiply⁡p,Transpose⁡p,V2,V2

92.

(9)
> 

M≔Create⁡p,3,3,random,integer

M≔4387658150697638

(10)
> 

Transpose⁡p,M,inplace:

> 

M

4358698157676038

(11)

See Also

LinearAlgebra/Details

LinearAlgebra[Modular]

LinearAlgebra[Modular][Copy]

LinearAlgebra[Modular][Create]

LinearAlgebra[Modular][Mod]

LinearAlgebra[Modular][Multiply]