Ufunc.pm (PDL-2.078) | : | Ufunc.pm (PDL-2.079) | ||
---|---|---|---|---|

skipping to change at line 912 | skipping to change at line 912 | |||

=for example | =for example | |||

$spectrum = minimum $image->transpose | $spectrum = minimum $image->transpose | |||

=for bad | =for bad | |||

Output is set bad if no elements of the input are non-bad, | Output is set bad if no elements of the input are non-bad, | |||

otherwise the bad flag is cleared for the output ndarray. | otherwise the bad flag is cleared for the output ndarray. | |||

Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | |||

see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Math/badmask> | see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Bad/badmask> | |||

for ways of masking NaNs. | for ways of masking NaNs. | |||

=cut | =cut | |||

#line 1152 "Ufunc.pm" | #line 1152 "Ufunc.pm" | |||

#line 1060 "../../blib/lib/PDL/PP.pm" | #line 1060 "../../blib/lib/PDL/PP.pm" | |||

*minimum = \&PDL::minimum; | *minimum = \&PDL::minimum; | |||

#line 1159 "Ufunc.pm" | #line 1159 "Ufunc.pm" | |||

skipping to change at line 954 | skipping to change at line 954 | |||

=for ref | =for ref | |||

Like minimum but returns the index rather than the value | Like minimum but returns the index rather than the value | |||

=for bad | =for bad | |||

Output is set bad if no elements of the input are non-bad, | Output is set bad if no elements of the input are non-bad, | |||

otherwise the bad flag is cleared for the output ndarray. | otherwise the bad flag is cleared for the output ndarray. | |||

Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | |||

see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Math/badmask> | see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Bad/badmask> | |||

for ways of masking NaNs. | for ways of masking NaNs. | |||

=cut | =cut | |||

#line 1203 "Ufunc.pm" | #line 1203 "Ufunc.pm" | |||

#line 1060 "../../blib/lib/PDL/PP.pm" | #line 1060 "../../blib/lib/PDL/PP.pm" | |||

*minimum_ind = \&PDL::minimum_ind; | *minimum_ind = \&PDL::minimum_ind; | |||

#line 1210 "Ufunc.pm" | #line 1210 "Ufunc.pm" | |||

skipping to change at line 1005 | skipping to change at line 1005 | |||

minimum_n_ind($pdl, $out = zeroes(5)); # DEPRECATED | minimum_n_ind($pdl, $out = zeroes(5)); # DEPRECATED | |||

$out = minimum_n_ind($pdl, 5); | $out = minimum_n_ind($pdl, 5); | |||

minimum_n_ind($pdl, $out = null, 5); | minimum_n_ind($pdl, $out = null, 5); | |||

=for bad | =for bad | |||

Output bad flag is cleared for the output ndarray if sufficient non-bad elements found, | Output bad flag is cleared for the output ndarray if sufficient non-bad elements found, | |||

else remaining slots in C<$c()> are set bad. | else remaining slots in C<$c()> are set bad. | |||

Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | |||

see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Math/badmask> | see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Bad/badmask> | |||

for ways of masking NaNs. | for ways of masking NaNs. | |||

=cut | =cut | |||

#line 1265 "Ufunc.pm" | #line 1265 "Ufunc.pm" | |||

#line 1059 "../../blib/lib/PDL/PP.pm" | #line 1059 "../../blib/lib/PDL/PP.pm" | |||

#line 416 "ufunc.pd" | #line 416 "ufunc.pd" | |||

sub PDL::minimum_n_ind { | sub PDL::minimum_n_ind { | |||

my ($a, $c, $m_size) = @_; | my ($a, $c, $m_size) = @_; | |||

skipping to change at line 1076 | skipping to change at line 1076 | |||

=for example | =for example | |||

$spectrum = maximum $image->transpose | $spectrum = maximum $image->transpose | |||

=for bad | =for bad | |||

Output is set bad if no elements of the input are non-bad, | Output is set bad if no elements of the input are non-bad, | |||

otherwise the bad flag is cleared for the output ndarray. | otherwise the bad flag is cleared for the output ndarray. | |||

Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | |||

see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Math/badmask> | see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Bad/badmask> | |||

for ways of masking NaNs. | for ways of masking NaNs. | |||

=cut | =cut | |||

#line 1353 "Ufunc.pm" | #line 1353 "Ufunc.pm" | |||

#line 1060 "../../blib/lib/PDL/PP.pm" | #line 1060 "../../blib/lib/PDL/PP.pm" | |||

*maximum = \&PDL::maximum; | *maximum = \&PDL::maximum; | |||

#line 1360 "Ufunc.pm" | #line 1360 "Ufunc.pm" | |||

skipping to change at line 1118 | skipping to change at line 1118 | |||

=for ref | =for ref | |||

Like maximum but returns the index rather than the value | Like maximum but returns the index rather than the value | |||

=for bad | =for bad | |||

Output is set bad if no elements of the input are non-bad, | Output is set bad if no elements of the input are non-bad, | |||

otherwise the bad flag is cleared for the output ndarray. | otherwise the bad flag is cleared for the output ndarray. | |||

Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | |||

see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Math/badmask> | see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Bad/badmask> | |||

for ways of masking NaNs. | for ways of masking NaNs. | |||

=cut | =cut | |||

#line 1404 "Ufunc.pm" | #line 1404 "Ufunc.pm" | |||

#line 1060 "../../blib/lib/PDL/PP.pm" | #line 1060 "../../blib/lib/PDL/PP.pm" | |||

*maximum_ind = \&PDL::maximum_ind; | *maximum_ind = \&PDL::maximum_ind; | |||

#line 1411 "Ufunc.pm" | #line 1411 "Ufunc.pm" | |||

skipping to change at line 1169 | skipping to change at line 1169 | |||

maximum_n_ind($pdl, $out = zeroes(5)); # DEPRECATED | maximum_n_ind($pdl, $out = zeroes(5)); # DEPRECATED | |||

$out = maximum_n_ind($pdl, 5); | $out = maximum_n_ind($pdl, 5); | |||

maximum_n_ind($pdl, $out = null, 5); | maximum_n_ind($pdl, $out = null, 5); | |||

=for bad | =for bad | |||

Output bad flag is cleared for the output ndarray if sufficient non-bad elements found, | Output bad flag is cleared for the output ndarray if sufficient non-bad elements found, | |||

else remaining slots in C<$c()> are set bad. | else remaining slots in C<$c()> are set bad. | |||

Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | Note that C<NaNs> are considered to be valid values and will "win" over non-C<Na N>; | |||

see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Math/badmask> | see L<isfinite|PDL::Math/isfinite> and L<badmask|PDL::Bad/badmask> | |||

for ways of masking NaNs. | for ways of masking NaNs. | |||

=cut | =cut | |||

#line 1466 "Ufunc.pm" | #line 1466 "Ufunc.pm" | |||

#line 1059 "../../blib/lib/PDL/PP.pm" | #line 1059 "../../blib/lib/PDL/PP.pm" | |||

#line 416 "ufunc.pd" | #line 416 "ufunc.pd" | |||

sub PDL::maximum_n_ind { | sub PDL::maximum_n_ind { | |||

my ($a, $c, $m_size) = @_; | my ($a, $c, $m_size) = @_; | |||

End of changes. 6 change blocks. | ||||

6 lines changed or deleted | | 6 lines changed or added |