}
numbers[dim-1] = 1;
for (int i=(dim-2); i>=0; i--)
numbers[i] = numbers[i+1] * sizes[i];
preNeighborIndexes = new IntArrayView(new PrimitiveIntArray(dim*2), 0, dim*2);
preMultIndex = new IntArrayView(new PrimitiveIntArray(dim), 0, dim);
prePoint = new DoubleArrayView(doublesNew.array(dim),0, dim);
preNeighborMultIndexes = new IntArrayView(new PrimitiveIntTable(dim*2,dim), 0, 0, dim*2, dim);
}