This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Lists and Matrices / Element Extraction /

ArrayRules

FilledSmallSquare ArrayRules[SparseArray[... ]] gives the rules ->, ->, ... specifying elements in a sparse array.

FilledSmallSquare ArrayRules[list] gives rules for SparseArray[list].

FilledSmallSquare The last element of ArrayRules[s] is always _, _, ... -> def, where def is the default value for unspecified elements in the sparse array.

FilledSmallSquare ArrayRules[list, val] takes the default value to be val.

FilledSmallSquare ArrayRules[list] assumes a default value of 0.

FilledSmallSquare See Section 3.7.2 and Section 3.7.12.

FilledSmallSquare See also: Position, Normal.

FilledSmallSquare New in Version 5.0.

Further Examples