31 for (
int k = std::max(mask_location[1] - half_mask_size[1], min_k_index);
32 k <= std::min(mask_location[1] + half_mask_size[1], max_k_index);
37 for (
int j = std::max(mask_location[2] - half_mask_size[2], min_j_index);
38 j <= std::min(mask_location[2] + half_mask_size[2], max_j_index);
43 for (
int i = std::max(mask_location[3] - half_mask_size[3], min_i_index);
44 i <= std::min(mask_location[3] + half_mask_size[3], max_i_index);
46 input_array[k][j][i] = value;
void assign_to_subregion(Array< 3, elemT > &input_array, const BasicCoordinate< 3, int > &mask_location, const BasicCoordinate< 3, int > &half_size, const elemT &value)
assign a value to a sub-region of an array
Definition assign_to_subregion.inl:24