expression.transposition

Stack a transposition operator on the expression.

Preconditions:

  • None

See also:

Examples

In [1]:
import vcsn
ctx = vcsn.context('law_char(abc), q')
exp = ctx.expression
ctx
Out[1]:
$\{a, b, c\}^*\to\mathbb{Q}$
In [2]:
e = exp('a+abc')
e
Out[2]:
$\mathit{a} + \mathit{abc}$
In [3]:
e.transposition()
Out[3]:
$\left(\mathit{a} + \mathit{abc}\right)^{T}$

transpose and transposition should not be confused.

In [4]:
e.transpose()
Out[4]:
$\mathit{a} + \mathit{cba}$