Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
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
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team