Mathematica 9 is now available

ArrayRules

Usage

ArrayRules[SparseArray[ ... ]] gives the rules { -> ,  -> , ... } specifying elements in a sparse array.
ArrayRules[list] gives rules for SparseArray[list].


Notes

• The last element of ArrayRules[s] is always {_, _, ... } -> def, where def is the default value for unspecified elements in the sparse array.
ArrayRules[list, val] takes the default value to be val.
ArrayRules[list] assumes a default value of 0.
• See also: Position, Normal.
• New in Version 5.
• Advanced Documentation.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.