message: cleaned up testing code
diff: @@ -55,31 +55,23 @@ void PrintData(const T *data, const size_t step, const Dims &start,
  }
  template <class T>
  -void cell_0(std::vector<size_t> start,std::vector<size_t> count,
  +void Cell0(std::vector<size_t> start, std::vector<size_t> count,
  std::vector<size_t> shape, size_t n0, size_t y, std::vector<T> &vec)
  {
  - size_t z,i0;
  -
  for (size_t i = 0; i < count[0]; i++)
  {
  - i0=n0*count[0]+i;
  - z=y*shape[0]+(i+start[0]);
  - vec[i0]=z;
  + vec[n0 * count[0] + i] = y * shape[0] + (i + start[0]);
  }
  }
  -
  template <class T>
  -void cell_N(std::vector<size_t> start,std::vector<size_t> count,
  +void CellN(std::vector<size_t> start, std::vector<size_t> count,
  std::vector<size_t> shape, size_t n0, size_t y, std::vector<T> &vec)
  {
  - size_t z,i0;
  -// size_t N=shape.size();
  -
  for (size_t i = 0; i < count[0]; i++)
  {
  - i0=n0*count[0]+i;
  - z=y*shape[0]+(i+start[0]);
  + size_t i0 = n0 * count[0] + i;
  + size_t z = y * shape[0] + (i + start[0]);
  auto start_next = start;
  auto count_next = count;
  @@ -90,28 +82,26 @@ void cell_N(std::vector<size_t> start,std::vector<size_t> count,
  if (start_next.size() == 1)
  {
  - cell_0(start_next,count_next,shape_next, i0,z,vec);
  + Cell0(start_next, count_next, shape_next, i0, z, vec);
  }
  else
  {
  - cell_N(start_next,count_next,shape_next, i0,z,vec);
  + CellN(start_next, count_next, shape_next, i0, z, vec);
  }
  }
  }
  -
  template <class T>
  -void GenData(std::vector<T> &vec, const size_t step, const std::vector<size_t> &start, const std::vector<size_t> &count, const std::vector<size_t> &shape)
  +void GenData(std::vector<T> &vec, const size_t step,
  + const std::vector<size_t> &start, const std::vector<size_t> &count,
  + const std::vector<size_t> &shape)
  {
  - size_t total_size = std::accumulate(count.begin(), count.end(), 1, std::multiplies<size_t>());
  + size_t total_size = std::accumulate(count.begin(), count.end(), 1,
  + std::multiplies<size_t>());
  vec.resize(total_size);
  -
  - size_t z=0,i0=0;
  - cell_N(start,count,shape, i0,z,vec);
  -
  + CellN(start, count, shape, 0, 0, vec);
  }
  -
  template <class T>
  void VerifyData(const std::complex<T> *data, size_t step, const Dims &start,
  const Dims &count, const Dims &shape)
  