| 42 | } |
| 43 | |
| 44 | arm_compute::Status arm_compute::error_on_invalid_subwindow(const char *function, |
| 45 | const char *file, |
| 46 | const int line, |
| 47 | const arm_compute::Window &full, |
| 48 | const arm_compute::Window &sub) |
| 49 | { |
| 50 | full.validate(); |
| 51 | sub.validate(); |
| 52 | |
| 53 | for (size_t i = 0; i < arm_compute::Coordinates::num_max_dimensions; ++i) |
| 54 | { |
| 55 | ARM_COMPUTE_RETURN_ERROR_ON_LOC(full[i].start() > sub[i].start(), function, file, line); |
| 56 | ARM_COMPUTE_RETURN_ERROR_ON_LOC(full[i].end() < sub[i].end(), function, file, line); |
| 57 | ARM_COMPUTE_RETURN_ERROR_ON_LOC(full[i].step() != sub[i].step(), function, file, line); |
| 58 | ARM_COMPUTE_RETURN_ERROR_ON_LOC((sub[i].start() - full[i].start()) % sub[i].step(), function, file, line); |
| 59 | } |
| 60 | return arm_compute::Status{}; |
| 61 | } |
| 62 | |
| 63 | arm_compute::Status arm_compute::error_on_window_not_collapsable_at_dimension(const char *function, |
| 64 | const char *file, |