Matrix/Array Simplification

*To*: mathgroup at smc.vnet.net*Subject*: [mg60100] Matrix/Array Simplification*From*: "Jon Palmer" <Jonathan.palmerNOSPAM at new.ox.ac.uk>*Date*: Fri, 2 Sep 2005 04:33:03 -0400 (EDT)*Organization*: Oxford University, England*Sender*: owner-wri-mathgroup at wolfram.com

Mathematica will happilly simplify scalar expressions such as Simplify[a*x + a*y] = a*(x+y) My question is: Is there a simple way to simplfy matrices in a similar way? For example suppose you have the diagonal matrix m = {{a x, 0}, {0, a y }} can this matrix be simplified to the form a * {{ x, 0}, {0, y }} Many thansk Jon Palmer