Returns the max of all values along a particular axis (dimension). Given an array of m tuples and n components: * Default is to return the max of all values in an array. * axis=0: Return the max values of all tuples and return a one tuple, n-component array. * axis=1: Return th
(array, axis=None, controller=None)
| 170 | |
| 171 | @deprecated(version="9.6", message="Use np.max() instead of algs.max().") |
| 172 | def max(array, axis=None, controller=None): |
| 173 | """Returns the max of all values along a particular axis (dimension). |
| 174 | Given an array of m tuples and n components: |
| 175 | * Default is to return the max of all values in an array. |
| 176 | * axis=0: Return the max values of all tuples and return a |
| 177 | one tuple, n-component array. |
| 178 | * axis=1: Return the max values of all components of each tuple |
| 179 | and return an m-tuple, 1-component array. |
| 180 | |
| 181 | When called in parallel, this function will compute the max across |
| 182 | processes when a controller argument is passed or the global controller |
| 183 | is defined. To disable parallel summing when running in parallel, pass a |
| 184 | dummy controller as follows: |
| 185 | |
| 186 | max(array, controller=vtkmodules.vtkParallelCore.vtkDummyController()). |
| 187 | """ |
| 188 | return npalgs.max(array, axis, controller) |
| 189 | |
| 190 | @deprecated(version="9.6", message="Use np.min() instead of algs.min().") |
| 191 | def min(array, axis=None, controller=None): |
no outgoing calls
no test coverage detected