1234567
for (int x=0 ; x < 50; x++) { for (int y=0 ; y < 50; y++) { b[x][y] = a[x][y]; } }
memcpy (b, a, 50*50*sizeof(float));
std::copy(&a[0][0], &a[0][0]+50*50,&b[0][0]);