Solved by Matej_Kompanek in post #2 
              
              
                Hi, 
I think you need to use continous memory, not vector of vectors. For example: 
std::vector<double> resallGAF;

long long DIM0 = 1;
long long DIM1 = 4;
long long DIM2 = 32;
long long DIM3 = 32;

double someValue = 0.0;

for (long long i = 0; i < DIM0; ++i)
{
   for (long long j = 0; j < DIM1; ++…