Applying rules to SparseArray

*To*: mathgroup at smc.vnet.net*Subject*: [mg66360] Applying rules to SparseArray*From*: "CoolGenie" <CGenie at gmail.com>*Date*: Thu, 11 May 2006 02:13:56 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

Hi! Let's say I've a matrix like this one: m=SparseArray[ {{1, 1} -> 1, {1, 2} ->2, {3, 2} -> x}, {3, 3} ]; which looks like this in MatrixForm: 1 2 0 0 0 0 0 x 0 where 'x' is a variable coefficient. Is there any way to apply a rule {x->1} to this array? ( m/.{x->1} doesn't work ) Thanks in advance

**Follow-Ups**:**Re: Applying rules to SparseArray***From:*Adriano Pascoletti <pascolet@dimi.uniud.it>