"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "GENERATED/PDL/Math.pm" between
PDL-2.078.tar.gz and PDL-2.079.tar.gz

About: PDL (Perl Data Language) aims to turn perl into an efficient numerical language for scientific computing (similar to IDL and MatLab).

Math.pm  (PDL-2.078):Math.pm  (PDL-2.079)
# #
# GENERATED WITH PDL::PP! Don't modify! # GENERATED WITH PDL::PP! Don't modify!
# #
package PDL::Math; package PDL::Math;
our @EXPORT_OK = qw(acos asin atan cosh sinh tan tanh ceil floor rint pow acosh asinh atanh erf erfc bessj0 bessj1 bessy0 bessy1 bessjn bessyn lgamma badmask is finite erfi ndtri polyroots ); our @EXPORT_OK = qw(acos asin atan cosh sinh tan tanh ceil floor rint pow acosh asinh atanh erf erfc bessj0 bessj1 bessy0 bessy1 bessjn bessyn lgamma isfinite e rfi ndtri polyroots );
our %EXPORT_TAGS = (Func=>\@EXPORT_OK); our %EXPORT_TAGS = (Func=>\@EXPORT_OK);
use PDL::Core; use PDL::Core;
use PDL::Exporter; use PDL::Exporter;
use DynaLoader; use DynaLoader;
our @ISA = ( 'PDL::Exporter','DynaLoader' ); our @ISA = ( 'PDL::Exporter','DynaLoader' );
push @PDL::Core::PP, __PACKAGE__; push @PDL::Core::PP, __PACKAGE__;
bootstrap PDL::Math ; bootstrap PDL::Math ;
skipping to change at line 647 skipping to change at line 647
=cut =cut
#line 813 "Math.pm" #line 813 "Math.pm"
#line 1060 "../../blib/lib/PDL/PP.pm" #line 1060 "../../blib/lib/PDL/PP.pm"
*lgamma = \&PDL::lgamma; *lgamma = \&PDL::lgamma;
#line 820 "Math.pm" #line 820 "Math.pm"
#line 1058 "../../blib/lib/PDL/PP.pm" #line 1058 "../../blib/lib/PDL/PP.pm"
=head2 badmask
=for sig
Signature: (a(); b(); [o]c())
=for ref
Clears all C<infs> and C<nans> in C<$a> to the corresponding value in C<$b>.
badmask can be run with C<$x> inplace:
badmask($x->inplace,0);
$x->inplace->badmask(0);
=for bad
If bad values are present, these are also cleared.
=cut
#line 850 "Math.pm"
#line 1060 "../../blib/lib/PDL/PP.pm"
*badmask = \&PDL::badmask;
#line 857 "Math.pm"
#line 1058 "../../blib/lib/PDL/PP.pm"
=head2 isfinite =head2 isfinite
=for sig =for sig
Signature: (a(); int [o]mask()) Signature: (a(); int [o]mask())
=for ref =for ref
Sets C<$mask> true if C<$a> is not a C<NaN> or C<inf> (either positive or negati ve). Works inplace. Sets C<$mask> true if C<$a> is not a C<NaN> or C<inf> (either positive or negati ve). Works inplace.
=for bad =for bad
Bad values are treated as C<NaN> or C<inf>. Bad values are treated as C<NaN> or C<inf>.
=cut =cut
#line 880 "Math.pm" #line 843 "Math.pm"
#line 1060 "../../blib/lib/PDL/PP.pm" #line 1060 "../../blib/lib/PDL/PP.pm"
*isfinite = \&PDL::isfinite; *isfinite = \&PDL::isfinite;
#line 887 "Math.pm" #line 850 "Math.pm"
#line 1058 "../../blib/lib/PDL/PP.pm" #line 1058 "../../blib/lib/PDL/PP.pm"
=head2 erfi =head2 erfi
=for sig =for sig
Signature: (a(); [o]b()) Signature: (a(); [o]b())
=for ref =for ref
The inverse of the error function. Works inplace. The inverse of the error function. Works inplace.
=for bad =for bad
erfi processes bad values. erfi processes 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 912 "Math.pm" #line 875 "Math.pm"
#line 1060 "../../blib/lib/PDL/PP.pm" #line 1060 "../../blib/lib/PDL/PP.pm"
*erfi = \&PDL::erfi; *erfi = \&PDL::erfi;
#line 919 "Math.pm" #line 882 "Math.pm"
#line 1058 "../../blib/lib/PDL/PP.pm" #line 1058 "../../blib/lib/PDL/PP.pm"
=head2 ndtri =head2 ndtri
=for sig =for sig
Signature: (a(); [o]b()) Signature: (a(); [o]b())
=for ref =for ref
skipping to change at line 743 skipping to change at line 714
The value for which the area under the The value for which the area under the
Gaussian probability density function (integrated from Gaussian probability density function (integrated from
minus infinity) is equal to the argument (cf L</erfi>). Works inplace. minus infinity) is equal to the argument (cf L</erfi>). Works inplace.
=for bad =for bad
ndtri processes bad values. ndtri processes 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 946 "Math.pm" #line 909 "Math.pm"
#line 1060 "../../blib/lib/PDL/PP.pm" #line 1060 "../../blib/lib/PDL/PP.pm"
*ndtri = \&PDL::ndtri; *ndtri = \&PDL::ndtri;
#line 953 "Math.pm" #line 916 "Math.pm"
#line 1058 "../../blib/lib/PDL/PP.pm" #line 1058 "../../blib/lib/PDL/PP.pm"
=head2 polyroots =head2 polyroots
=for sig =for sig
Signature: (cr(n); ci(n); [o]rr(m); [o]ri(m)) Signature: (cr(n); ci(n); [o]rr(m); [o]ri(m))
=for ref =for ref
skipping to change at line 773 skipping to change at line 744
=for usage =for usage
($rr, $ri) = polyroots($cr, $ci); ($rr, $ri) = polyroots($cr, $ci);
=for bad =for bad
polyroots does not process bad values. polyroots 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 987 "Math.pm" #line 950 "Math.pm"
#line 1060 "../../blib/lib/PDL/PP.pm" #line 1060 "../../blib/lib/PDL/PP.pm"
*polyroots = \&PDL::polyroots; *polyroots = \&PDL::polyroots;
#line 994 "Math.pm" #line 957 "Math.pm"
#line 392 "math.pd" #line 365 "math.pd"
=head1 BUGS =head1 BUGS
Hasn't been tested on all platforms to ensure Cephes Hasn't been tested on all platforms to ensure Cephes
versions are picked up automatically and used correctly. versions are picked up automatically and used correctly.
=head1 AUTHOR =head1 AUTHOR
Copyright (C) R.J.R. Williams 1997 (rjrw@ast.leeds.ac.uk), Karl Glazebrook Copyright (C) R.J.R. Williams 1997 (rjrw@ast.leeds.ac.uk), Karl Glazebrook
(kgb@aaoepp.aao.gov.au) and Tuomas J. Lukka (Tuomas.Lukka@helsinki.fi). (kgb@aaoepp.aao.gov.au) and Tuomas J. Lukka (Tuomas.Lukka@helsinki.fi).
Portions (C) Craig DeForest 2002 (deforest@boulder.swri.edu). Portions (C) Craig DeForest 2002 (deforest@boulder.swri.edu).
All rights reserved. There is no warranty. You are allowed All rights reserved. There is no warranty. You are allowed
to redistribute this software / documentation under certain to redistribute this software / documentation under certain
conditions. For details, see the file COPYING in the PDL conditions. For details, see the file COPYING in the PDL
distribution. If this file is separated from the PDL distribution, distribution. If this file is separated from the PDL distribution,
the PDL copyright notice should be included in the file. the PDL copyright notice should be included in the file.
=cut =cut
#line 1021 "Math.pm" #line 984 "Math.pm"
# Exit with OK status # Exit with OK status
1; 1;
 End of changes. 12 change blocks. 
40 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)