expression.transposition

Stack a transposition operator on the expression.

Preconditions:

  • None

See also:

Examples

In [1]:
import vcsn
c = vcsn.context('law_char(abc), seriesset<law_char(xyz), b>')
c
Out[1]:
$\{a, b, c\}^*\to\mathsf{Series}[\{x, y, z\}^*\to\mathbb{B}]$
In [2]:
r = c.expression('a+abc')
r
Out[2]:
$\mathit{a} + \mathit{abc}$
In [3]:
r.transposition()
Out[3]:
$\left(\mathit{a} + \mathit{abc}\right)^{T}$

transpose and transposition should not be confused.

In [4]:
r.transpose()
Out[4]:
$\mathit{a} + \mathit{cba}$
In [5]:
r.transposition().transposition()
Out[5]:
${\left(\mathit{a} + \mathit{abc}\right)^{T}}^{T}$