m = matrix([[0, 1, 0], [0, 0, 1], [1, 0, 0]]) v = vector([2, 3, 1]) m \ v
and then
sol = m \ v m * sol