MROOT(3pm)
π MROOT π
okay bestie, so this is the PDL::GSL::MROOT page β it lives in the User Contributed Perl Documentation section of the manual, and it's the one you want when you're out here trying to find the roots of a multidimensional function. no cap. π¦
β¨ NAME β¨
PDL::GSL::MROOT β PDL interface to multidimensional root-finding routines in GSL π
πΈ DESCRIPTION πΈ
So basically this is an interface to the multidimensional root-finding package present in the GNU Scientific Library. it's giving "I let GSL do the math so you don't have to". π§
Right now there's literally a single function, gslmroot_fsolver, and it provides an interface to the algorithms in the GSL library that do not use derivatives. that's the whole vibe. periodt.
π SYNOPSIS π
use PDL;
use PDL::GSL::MROOT;
my $init = pdl (-10.00, -5.0);
my $epsabs = 1e-7;
$res = gslmroot_fsolver($init, \&rosenbrock,
{Method => 0, EpsAbs => $epsabs});
sub rosenbrock{
my ($x) = @_;
my $c = 1;
my $d = 10;
my $y = zeroes($x);
my $y0 = $y->slice(0);
$y0 .= $c * (1 - $x->slice(0));
my $y1 = $y->slice(1);
$y1 .= $d * ($x->slice(1) - $x->slice(0)**2);
return $y;
}
#line 68 "MROOT.pm"
π FUNCTIONS π
π gslmroot_fsolver
Signature: (double [io]xfree(n); double epsabs(); int method(); SV* function1)
info not available π β yeah bestie, that's genuinely all the docs say here, I'm not gonna make stuff up.
β οΈ heads up: gslmroot_fsolver 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. so like, keep that in mind. π
π₯ SEE ALSO π₯
- PDL
The GSL documentation is online at
http://www.gnu.org/software/gsl/manual/
π AUTHOR π
This file copyright (C) 2006 Andres Jordan <ajordan@eso.org> and Simon Casassus <simon@das.uchile.cl> All rights reserved. There is no warranty. You are allowed to redistribute this software/documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file.
okay that's the whole page, you ate that π«Ά this was perl v5.38.2, dated 2024-04-10, and it's the MROOT(3pm) page from the User Contributed Perl Documentation β mwah, go find some roots bestie πβ¨πΈ
π¦ where this page comes from
- ubuntu noble: pdl 1:2.085-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms