G
Gernot Frisch
Hi,
I need a class, that has a 4 dimensional array (can be 3 dimensional,
too)
with such an operator:
T operator()(int x1, int x2=0, int x3=0, int x4=0);
that can be used as:
myarray(12);
or
myarray(12,14);
depending on the array's dimension.
So far I have stored factors for each 'x' dimension, and put the data
in a 1-dimensional array. But it's quite ineffective, I guess.
I need a class, that has a 4 dimensional array (can be 3 dimensional,
too)
with such an operator:
T operator()(int x1, int x2=0, int x3=0, int x4=0);
that can be used as:
myarray(12);
or
myarray(12,14);
depending on the array's dimension.
So far I have stored factors for each 'x' dimension, and put the data
in a 1-dimensional array. But it's quite ineffective, I guess.