2
$\begingroup$
SparseArray[{1, 1} -> t] /. t -> 1

Still contains t. Why t is not replaced by 1?

$\endgroup$
2
  • 1
    $\begingroup$ Atomic objects don't really work like that. Anyway: use ArrayRules[] to convert to a list of nonzero entries and their corresponding positions, make your replacements, and then convert back to SparseArray[]. $\endgroup$ Oct 28, 2015 at 16:48
  • 1
    $\begingroup$ This question might be a duplicate of this: mathematica.stackexchange.com/questions/13790/… $\endgroup$ Oct 28, 2015 at 16:51

0

Browse other questions tagged or ask your own question.