replacement rule and sparsearray question
- To: mathgroup at smc.vnet.net
- Subject: [mg71297] replacement rule and sparsearray question
- From: Arkadiusz.Majka at gmail.com
- Date: Tue, 14 Nov 2006 05:06:09 -0500 (EST)
Hi,
How can I apply a replacement rule to sparse array, e.g
SparseArray[{1,2,3}]/.{2->222}
and obtain the same result as for {1,2,3}/.{2->222} (what is {1,222,3}.
I DON'T want to call Normal before.
Thanks,
arek
- Follow-Ups:
- Re: replacement rule and sparsearray question
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: replacement rule and sparsearray question