cxx11_tensor_patch.cpp | 99 int patch_loc; local 101 patch_loc = i + 2 * (j + 2 * (k + 4 * l)); 103 patch_loc = l + 7 * (k + 4 * (j + 2 * i)); 108 VERIFY_IS_EQUAL(tensor(i,j+x,k+y,l), twod_patch(0,x,y,0,patch_loc)); 110 VERIFY_IS_EQUAL(tensor(i,j+x,k+y,l), twod_patch(patch_loc,0,x,y,0)); 144 int patch_loc; local 146 patch_loc = i + 2 * (j + 2 * (k + 3 * l)); 148 patch_loc = l + 3 * (k + 3 * (j + 2 * i)); 154 VERIFY_IS_EQUAL(tensor(i,j+x,k+y,l+z), threed_patch(0,x,y,z,patch_loc)); 156 VERIFY_IS_EQUAL(tensor(i,j+x,k+y,l+z), threed_patch(patch_loc,0,x,y,z)) [all...] |