K is around 15! Yes, most elements will be 0. However, most of this are 3-dimensional arrays and I could not get sparse structures to work in this case. A MWE of my problem can be found here Performance Tips for Combinatorial Problem
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Preallocating array of matrices | 4 | 1181 | May 5, 2020 | |
| Preallocating memory for a 3 dimensional array | 5 | 329 | April 13, 2024 | |
| RAM needed to initialise large matrices | 31 | 3069 | March 23, 2022 | |
| Huge sparse array construction | 9 | 957 | April 12, 2020 | |
| Preallocating Vector of Vectors | 25 | 3298 | October 7, 2021 |