ArrayDepth
ArrayDepth(a)
returns the depth of the non-ragged array
a
, defined asLength(Dimensions(a))
.
Examples
>> ArrayDepth({{a,b},{c,d}})2
>> ArrayDepth(x)0
>> ArrayDepth(SparseArray({{1, 2, 3} -> a}, {2, 3, 4}))3
Implementation status
- ✅ - full supported