| 967 | } |
| 968 | |
| 969 | static double cost_diff(int desired_chunks, std::complex<double> costs) { |
| 970 | double left_cost = real(costs) / (desired_chunks / 2); |
| 971 | double right_cost = imag(costs) / (desired_chunks - desired_chunks / 2); |
| 972 | return right_cost - left_cost; |
| 973 | } |
| 974 | |
| 975 | void grid_volume::tile_split(int &best_split_point, direction &best_split_direction) const { |
| 976 | const size_t ntot_thresh = 10; |
no outgoing calls
no test coverage detected