MCPcopy Create free account
hub / github.com/Kitware/VTK / max

Function max

Wrapping/Python/vtkmodules/numpy_interface/algorithms.py:172–188  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

170
171@deprecated(version="9.6", message="Use np.max() instead of algs.max().")
172def 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().")
191def min(array, axis=None, controller=None):

Callers 5

b64_encode_numpyFunction · 0.50
SetMaxAllowedSizeMethod · 0.50
parseActorMethod · 0.50
GenerateMetadataMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected