JohannesRS
Programmer
Hi all.
Well, this is the most difficult task I've seen, and probably the answer is "it can't be done". But I need to be sure about it.
In order to avoid an extremely big and heavily zeroed matrix, whose size is fully dependent of input parameters, I came out with the idea of a looping code that would generate, according to the input needs, N matrixes of optimal size, whose names would be generated in order by the same looping. It would be something like allocating matrix1(a,b,c), matrix2(d,e,f), matrix3(g,h,i), etc, according to optimal needs.
In order to implement this, I can already see two problems: first, how could (or CAN'T) I declare this variables, if the names would be generated on the fly? and second, how could (again, or CAN'T) I call the values from this variable in the code?
I'm almost sure it just CAN'T be done. But I would like to be sure about it. If it's possible (or impossible), or anyone knows about any (probably huge) workaround for this kind of problem, it will be really helpfull.
Thanks a lot in advance,
Jones
Well, this is the most difficult task I've seen, and probably the answer is "it can't be done". But I need to be sure about it.
In order to avoid an extremely big and heavily zeroed matrix, whose size is fully dependent of input parameters, I came out with the idea of a looping code that would generate, according to the input needs, N matrixes of optimal size, whose names would be generated in order by the same looping. It would be something like allocating matrix1(a,b,c), matrix2(d,e,f), matrix3(g,h,i), etc, according to optimal needs.
In order to implement this, I can already see two problems: first, how could (or CAN'T) I declare this variables, if the names would be generated on the fly? and second, how could (again, or CAN'T) I call the values from this variable in the code?
I'm almost sure it just CAN'T be done. But I would like to be sure about it. If it's possible (or impossible), or anyone knows about any (probably huge) workaround for this kind of problem, it will be really helpfull.
Thanks a lot in advance,
Jones