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](..).
withLinearAlgebraModular:
p≔97
M≔Modp,Matrix3,4,i,j↦rand,integer
M≔779610865836802244396039
Transposep,M
775844963639108060862239
V1≔Modp,Vectorrow3,i↦rand,float8
V1≔43.12.55.
Transposep,V1
43.12.55.
V2≔Modp,Vectorcolumn3,i↦rand,float8
V2≔2.24.71.
Transposep,V2
2.24.71.
Copyp,V2,transpose
Multiplyp,Transposep,V2,V2
92.
M≔Createp,3,3,random,integer
M≔4387658150697638
Transposep,M,inplace:
M
4358698157676038
See Also
LinearAlgebra/Details
LinearAlgebra[Modular][Copy]
LinearAlgebra[Modular][Create]
LinearAlgebra[Modular][Mod]
LinearAlgebra[Modular][Multiply]
Download Help Document