LinearAlgebra[Modular]
Transpose
compute the transpose of a mod m Matrix or Vector
Calling Sequence
Parameters
Description
Examples
Transpose(m, A, inplace)
m
-
modulus
A
mod m Matrix or Vector
inplace
(optional) keyword for inplace operation on square Matrix
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](..).
with⁡LinearAlgebraModular:
p≔97
M≔Mod⁡p,Matrix⁡3,4,i,j↦rand⁡,integer
M≔779610865836802244396039
Transpose⁡p,M
775844963639108060862239
V1≔Mod⁡p,Vectorrow⁡3,i↦rand⁡,float8
V1≔43.12.55.
Transpose⁡p,V1
43.12.55.
V2≔Mod⁡p,Vectorcolumn⁡3,i↦rand⁡,float8
V2≔2.24.71.
Transpose⁡p,V2
2.24.71.
Copy⁡p,V2,transpose
Multiply⁡p,Transpose⁡p,V2,V2
92.
M≔Create⁡p,3,3,random,integer
M≔4387658150697638
Transpose⁡p,M,inplace:
M
4358698157676038
See Also
LinearAlgebra/Details
LinearAlgebra[Modular][Copy]
LinearAlgebra[Modular][Create]
LinearAlgebra[Modular][Mod]
LinearAlgebra[Modular][Multiply]
Download Help Document