Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 842 Bytes

File metadata and controls

45 lines (26 loc) · 842 Bytes

ArrayRules

ArrayRules(sparse-array)

return the array of rules which define the sparse array.

ArrayRules(sparse-array, default-value)

return the array of rules which define the sparse array and set the new default-value.

ArrayRules(nested-lists)

return the array of rules which define the nested lists.

Examples

>> a = {{{0,0},{1,1}},{{0,1},{0,1}}} 
{{{0,0},{1,1}},{{0,1},{0,1}}} 

>> ArrayRules(a) 
{{1,2,1}->1,{1,2,2}->1,{2,1,2}->1,{2,2,2}->1,{_,_,_}->0}

Related terms

SparseArray

Implementation status

  • ✅ - full supported

Github