DIFF.pm (PDL-2.082) | : | DIFF.pm (PDL-2.083) | ||
---|---|---|---|---|
skipping to change at line 82 | skipping to change at line 82 | |||
($res,$abserr) = PDL::GSL::DIFF::diff_backward($x,$f); | ($res,$abserr) = PDL::GSL::DIFF::diff_backward($x,$f); | |||
} | } | |||
elsif($$opt{Method}=~/forw/i){ | elsif($$opt{Method}=~/forw/i){ | |||
($res,$abserr) = PDL::GSL::DIFF::diff_forward($x,$f); | ($res,$abserr) = PDL::GSL::DIFF::diff_forward($x,$f); | |||
} | } | |||
else{ | else{ | |||
barf("Unknown differentiation method $$opt{Method} in gsldiff\n"); | barf("Unknown differentiation method $$opt{Method} in gsldiff\n"); | |||
} | } | |||
return ($res,$abserr); | return ($res,$abserr); | |||
} | } | |||
#line 100 "DIFF.pm" | #line 95 "DIFF.pm" | |||
#line 958 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | ||||
=head2 diff_central | =head2 diff_central | |||
=for sig | =for sig | |||
Signature: (double x(); double [o] res(); double [o] abserr(); SV* function) | Signature: (double x(); double [o] res(); double [o] abserr(); SV* function) | |||
=for ref | =for ref | |||
info not available | info not available | |||
=for bad | =for bad | |||
diff_central does not process bad values. | diff_central does not process bad values. | |||
It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | |||
=cut | =cut | |||
#line 127 "DIFF.pm" | ||||
#line 960 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | ||||
*diff_central = \&PDL::diff_central; | *diff_central = \&PDL::diff_central; | |||
#line 134 "DIFF.pm" | ||||
#line 958 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | ||||
=head2 diff_backward | =head2 diff_backward | |||
=for sig | =for sig | |||
Signature: (double x(); double [o] res(); double [o] abserr(); SV* function) | Signature: (double x(); double [o] res(); double [o] abserr(); SV* function) | |||
=for ref | =for ref | |||
info not available | info not available | |||
=for bad | =for bad | |||
diff_backward does not process bad values. | diff_backward does not process bad values. | |||
It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | |||
=cut | =cut | |||
#line 161 "DIFF.pm" | ||||
#line 960 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | ||||
*diff_backward = \&PDL::diff_backward; | *diff_backward = \&PDL::diff_backward; | |||
#line 168 "DIFF.pm" | ||||
#line 958 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | ||||
=head2 diff_forward | =head2 diff_forward | |||
=for sig | =for sig | |||
Signature: (double x(); double [o] res(); double [o] abserr(); SV* function) | Signature: (double x(); double [o] res(); double [o] abserr(); SV* function) | |||
=for ref | =for ref | |||
info not available | info not available | |||
=for bad | =for bad | |||
diff_forward does not process bad values. | diff_forward does not process bad values. | |||
It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | |||
=cut | =cut | |||
#line 195 "DIFF.pm" | ||||
#line 960 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | ||||
*diff_forward = \&PDL::diff_forward; | *diff_forward = \&PDL::diff_forward; | |||
#line 202 "DIFF.pm" | ||||
#line 41 "gsl_diff.pd" | #line 41 "gsl_diff.pd" | |||
=head2 gsldiff | =head2 gsldiff | |||
=for ref | =for ref | |||
This functions serves as an interface to the three differentiation | This functions serves as an interface to the three differentiation | |||
functions present in GSL: gsl_diff_central, gsl_diff_backward and | functions present in GSL: gsl_diff_central, gsl_diff_backward and | |||
gsl_diff_forward. To compute the derivative, the central method uses | gsl_diff_forward. To compute the derivative, the central method uses | |||
skipping to change at line 225 | skipping to change at line 207 | |||
This file copyright (C) 2003 Andres Jordan <andresj@physics.rutgers.edu> | This file copyright (C) 2003 Andres Jordan <andresj@physics.rutgers.edu> | |||
All rights reserved. There is no warranty. You are allowed to redistribute | All rights reserved. There is no warranty. You are allowed to redistribute | |||
this software documentation under certain conditions. For details, see the file | this software documentation under certain conditions. For details, see the file | |||
COPYING in the PDL distribution. If this file is separated from the | COPYING in the PDL distribution. If this file is separated from the | |||
PDL distribution, the copyright notice should be included in the file. | PDL distribution, the copyright notice should be included in the file. | |||
The GSL differentiation routines were written by David Morrison. | The GSL differentiation routines were written by David Morrison. | |||
=cut | =cut | |||
#line 274 "DIFF.pm" | #line 245 "DIFF.pm" | |||
# Exit with OK status | # Exit with OK status | |||
1; | 1; | |||
End of changes. 8 change blocks. | ||||
20 lines changed or deleted | 2 lines changed or added |