It is a really simple question, but I'm a bit stuck. I have a matrix
J = ( {
{e - a y - 2 x e, -a x},
{b e y, b e x - 1 - 2 y}
} );
and a list of pairs
listS = {{0, 0}, {0, -1}, {1,
0}, {(e + a)/(e (1 + b a)), (e b - 1)/(
b a + 1)}};
And I want to replace (x,y) in J by values of listS and to get a list of four matrix. The way I do it:
J /. {x -> listS[[All, 1]], y -> listS[[All, 2]]}
J /. {x,y}-> listS
doesn't satisfy me, because in first case I get the list of four elements with the same matrix indexes in each list element, but in the second case it replace nothing at all.
J /. (Thread[{x, y} -> #] & /@ listS)
? $\endgroup$