while (index >= 0) {
if (positions[index] < dimensSizes[index] - 1) {
positions[index]++;
index = positions.length - 1;
raOut.setPosition(positions);
<BUG>raOut.get().setReal(Math.sqrt(actualValues[getIndex(positions, dimensSizes)]));
</BUG>
} else {
positions[index] = 0;
index--;

while (index >= 0) {
if (positions[index] == -1) {
index--;
} else {
if (positions[index] < dimensSizes[index] - 1) {
positions[index]++;
index = positions.length - 1;
list.add(new NextPhase<>(actualValues, dimensSizes, positions.clone(), actualDimension));
} else {
positions[index] = 0;
index--;
