Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Sparse Arrays >

ArrayRules

ArrayRules[SparseArray[...]]
gives the rules {pos1->val1, pos2->val2, ...} specifying elements in a sparse array.
ArrayRules[list]
gives rules for SparseArray[list].
  • The last element of ArrayRules[s] is always {_, _, ...}->def, where def is the default value for unspecified elements in the sparse array.  »
New in 5
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team