Compute global max of all array data.
(self, data, empty=-np.inf)
| 45 | return self.reduce_scalar(local_min, MPI.MIN) |
| 46 | |
| 47 | def global_max(self, data, empty=-np.inf): |
| 48 | """Compute global max of all array data.""" |
| 49 | if data.size: |
| 50 | local_max = np.max(data) |
| 51 | else: |
| 52 | local_max = empty |
| 53 | return self.reduce_scalar(local_max, MPI.MAX) |
| 54 | |
| 55 | def global_mean(self, data): |
| 56 | """Compute global mean of all array data.""" |
no test coverage detected