1MROOT(3)              User Contributed Perl Documentation             MROOT(3)
2
3
4

NAME

6       PDL::GSL::MROOT - PDL interface to multidimensional root-finding
7       routines in GSL
8

DESCRIPTION

10       This is an interface to the multidimensional root-finding package
11       present in the GNU Scientific Library.
12
13       At the moment there is a single function gslmroot_fsolver which
14       provides an interface to the algorithms in the GSL library that do not
15       use derivatives.
16

SYNOPSIS

18          use PDL;
19          use PDL::GSL::MROOT;
20
21          my $init = pdl (-10.00, -5.0);
22          my $epsabs = 1e-7;
23
24         $res = gslmroot_fsolver($init, \&rosenbrock,
25                                 {Method => 0, EpsAbs => $epsabs});
26
27         sub rosenbrock{
28            my ($x) = @_;
29            my $c = 1;
30            my $d = 10;
31            my $y = zeroes($x);
32
33            my $y0 = $y->slice(0);
34            $y0 .=  $c * (1 - $x->slice(0));
35
36            my $y1 = $y->slice(1);
37            $y1 .=  $d * ($x->slice(1) - $x->slice(0)**2);
38
39            return $y;
40         }
41       #line 68 "MROOT.pm"
42

FUNCTIONS

44   gslmroot_fsolver
45         Signature: (double [io]xfree(n);   double epsabs(); int method(); SV* function1)
46
47       info not available
48
49       gslmroot_fsolver does not process bad values.  It will set the bad-
50       value flag of all output ndarrays if the flag is set for any of the
51       input ndarrays.
52

SEE ALSO

54       PDL
55
56       The GSL documentation is online at
57
58         http://www.gnu.org/software/gsl/manual/
59

AUTHOR

61       This file copyright (C) 2006 Andres Jordan <ajordan@eso.org> and Simon
62       Casassus <simon@das.uchile.cl> All rights reserved. There is no
63       warranty. You are allowed to redistribute this software/documentation
64       under certain conditions. For details, see the file COPYING in the PDL
65       distribution. If this file is separated from the PDL distribution, the
66       copyright notice should be included in the file.
67
68
69
70perl v5.38.0                      2023-07-21                          MROOT(3)
Impressum