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

ArrayDepth

ArrayDepth[expr]
gives the depth to which expr is a full array, with all the parts at a particular level being lists of the same length, or is a SparseArray object.
Find the depth to which an array is full:
Find the depth to which an array is full:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Find the depth of a SparseArray:
Find the array depth of a list of sparse matrices:
Use a head other than List:
ArrayDepth gives the length of the dimensions list:
New in 5 | Last modified in 5