I'm doing some heavy symbolic calculations and for preliminary simple tests I need to replace all coefficients except some choosings, e.g.:
A = {{0, 0}, {{2, 0}, {1, 1}, {0, 2}}, {{4, 0}, {3, 1}, {2, 2}, {1, 3}, {0, 4}}}
a = {{0, 0} -> e1, {1, 1} -> e2, {3, 1} -> e3} (* e.g from CoefficientRules *)
I want that something like A /. a gives {e1, {e2}, {e3}}.
These two similar question didn't help me:
