MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

replacement rule and sparsearray question


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


  • Prev by Date: my favorite MathML output from Mathematica so far:
  • Next by Date: Arithmetic Puzzle (so simple it's hard)
  • Previous by thread: my favorite MathML output from Mathematica so far:
  • Next by thread: Re: replacement rule and sparsearray question