Skip to content

Transpose ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.

Transpose a matrix or swap two tensor axes.

✓ checked against that system · ! checked, with disagreements (hover a chip)FindStatMp00084via StandardTableauWolfram LanguageTranspose!
Transpose(value, axis1: integer?, axis2: integer?) -> valueas compute-engine declares it
Typed signatures
TypePackageApplies
(value, axis1: integer?, axis2: integer?) -> valuecompute-enginealways

Domain: Compute engine

Examples

Basic #

Rows and columns swap, turning pairs into columns

live ↗
In[[a,x],[b,y],[c,z]]T\bigl\lbrack\bigl\lbrack a, x\bigr\rbrack, \bigl\lbrack b, y\bigr\rbrack, \bigl\lbrack c, z\bigr\rbrack\bigr\rbrack^TOut[[a,b,c],[x,y,z]]\bigl\lbrack\bigl\lbrack a, b, c\bigr\rbrack, \bigl\lbrack x, y, z\bigr\rbrack\bigr\rbrack
Applications #
live ↗
Inchop(Dot(u,uT))\mathrm{chop}(\mathrm{Dot}(u, u^T))Outchop(u⋅uT)\mathrm{chop}({{u}} \cdot {{u^T}})
live ↗
Inchop(Dot(v,vT))\mathrm{chop}(\mathrm{Dot}(v, v^T))Outchop(v⋅vT)\mathrm{chop}(v \cdot v^T)
live ↗
Inchop(Dot(q,qT))\mathrm{chop}(\mathrm{Dot}(q, q^T))Outchop(q⋅qT)\mathrm{chop}({{q}} \cdot {{q^T}})
Properties #
live ↗
InmT‾\overline{m^T}OutmT‾\overline{m^T}
live ↗
InShape(aT)\mathrm{Shape}(a^T)Out()()
About
Examples6
Checked againstWolfram Language 2 agree4 differSageMath 1 agree1 error
CrosswalkFindStatWolfram Language

Implementation

mappedsagepackages/oracle/src/mappings.ts