File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -180,20 +180,28 @@ def inner(f, g):
180180 return f .dtype (n .data [0 ])
181181
182182
183- red_doc = lambda func : f"""
184- Retrieve the { func } imum.
183+ def mmin (f ):
184+ """
185+ Retrieve the minimum.
185186
186187 Parameters
187188 ----------
188189 f : array_like or Function
189190 Input operand.
190191 """
192+ return _reduce_func (f , np .min , dv .mpi .MPI .MIN )
193+
191194
195+ def mmax (f ):
196+ """
197+ Retrieve the maximum.
192198
193- mmin = lambda f : _reduce_func (f , np .min , dv .mpi .MPI .MIN )
194- mmin .__doc__ = red_doc ('min' )
195- mmax = lambda f : _reduce_func (f , np .max , dv .mpi .MPI .MAX )
196- mmax .__doc__ = red_doc ('max' )
199+ Parameters
200+ ----------
201+ f : array_like or Function
202+ Input operand.
203+ """
204+ return _reduce_func (f , np .max , dv .mpi .MPI .MAX )
197205
198206
199207@dv .switchconfig (log_level = 'ERROR' )
You can’t perform that action at this time.
0 commit comments