All Questions
Tagged with challenge-community matrix
2 questions
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$
...
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
...