Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
2 answers
81 views

Best way to extend the size and add terms to a SparseArray without expanding

Let's say I have a "small" SparseArray of any size, in the example $2\times2$ ...
rhermans's user avatar
  • 37.4k
7 votes
4 answers
525 views

Fill an empty matrix with the depth of its elements

Given an arbitrarily nested empty matrix like for example mat = { {}, {{}, {}}, {{}, {{}}, {}}, {{}, {{}}, {}, {{{}}}} }; and knowing that ...
eldo's user avatar
  • 83.1k