0

How to modify the default value of a SparseArray? All of my ideas doesn't work, because of the ReadProtected attribute. Is there a string such that

mat = SparseArray[{}, {100, 100}]
mat["something"] = 1;

is a solution?

Coolwater
  • 20,257
  • 3
  • 35
  • 64

0 Answers0