The right scalar product of an automaton by a weight.
For consistency reasons with other operations, the
algo parameter can be one of these:
However, due to how the scalar product works, this makes no difference.
import vcsn a = vcsn.context('lal_char, q').expression('<2>a<3>bc', 'none').standard() a
a.rweight(a.context().weight('5')), you may write
a * 5.
a * 5
To force the execution of the general algorithm you can do it this way.
However, apart from the multiplication by
0, there is no difference with the standard algorithm.