Math::Macopt 0.02
Sponsored Links
Math::Macopt 0.02 Ranking & Summary
File size:
0.033 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
868
Date added:
2007-06-08
Publisher:
Tom Chau
Math::Macopt 0.02 description
Math::Macopt is a Perl wrapper for macopt++, which is a conjugate gradient library.
INSTALLATION
The package can be installed by the standard PERL module installation procedure:
perl Makefile.PL
make
make test
make install
Please noted that the original "macopt++" C++ source code is included in this PERL package. The static linking avoids the possible conflict to any pre-installed version of "macopt++".
SYNOPSIS
use strict;
use Math::Macopt;
&main();
sub main
{
# Some settings
my $N = 10;
my $epsilon = 0.001;
# Initialize the Macopt
my $macopt = new Math::Macopt::Base($N, 0);
# Setup the function and its gradient
my $func = sub {
my $x = shift;
my $size = $macopt->size();
my $sum = 0;
foreach my $i (0..$size-1) {
$sum += ($x->[$i]-$i)**2;
}
return $sum;
};
my $dfunc = sub {
my $x = shift;
my $size = $macopt->size();
my $g = ();
foreach my $i (0..$size-1) {
$g->[$i] = 2*($x->[$i]-$i);
}
return $g;
};
$macopt->setFunc(&$func);
$macopt->setDfunc(&$dfunc);
# Optimizer using macopt
my $x = [(1)x($N)];
$macopt->maccheckgrad($x, $N, $epsilon, 0) ;
$macopt->macoptII($x, $N);
# Display the result
printf "[%s]n", join(,, @$x);
}
INSTALLATION
The package can be installed by the standard PERL module installation procedure:
perl Makefile.PL
make
make test
make install
Please noted that the original "macopt++" C++ source code is included in this PERL package. The static linking avoids the possible conflict to any pre-installed version of "macopt++".
SYNOPSIS
use strict;
use Math::Macopt;
&main();
sub main
{
# Some settings
my $N = 10;
my $epsilon = 0.001;
# Initialize the Macopt
my $macopt = new Math::Macopt::Base($N, 0);
# Setup the function and its gradient
my $func = sub {
my $x = shift;
my $size = $macopt->size();
my $sum = 0;
foreach my $i (0..$size-1) {
$sum += ($x->[$i]-$i)**2;
}
return $sum;
};
my $dfunc = sub {
my $x = shift;
my $size = $macopt->size();
my $g = ();
foreach my $i (0..$size-1) {
$g->[$i] = 2*($x->[$i]-$i);
}
return $g;
};
$macopt->setFunc(&$func);
$macopt->setDfunc(&$dfunc);
# Optimizer using macopt
my $x = [(1)x($N)];
$macopt->maccheckgrad($x, $N, $epsilon, 0) ;
$macopt->macoptII($x, $N);
# Display the result
printf "[%s]n", join(,, @$x);
}
Math::Macopt 0.02 Screenshot
Math::Macopt 0.02 Keywords
Macopt 0.02
perl wrapper
Conjugate gradient
Perl
X
n
0
gradient
wrapper
Math::Macopt
MathMacopt
Math::Macopt 0.02
Libraries
Programming
Bookmark Math::Macopt 0.02
Math::Macopt 0.02 Copyright
WareSeeker periodically updates pricing and software information of Math::Macopt 0.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Math::Macopt 0.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
conjugate gradient method
perl wrapper for c++
perl wrapper script
conjugate gradients
perlane
preconditioned conjugate gradient
la perla
perl wrapper xs
perlina handbags
conjugate gradient wiki
perl tutorial
perl wrappers
conjugate gradient algorithm
perlembagaan malaysia
perlini silver
perl wrapper definition
perla
what is perlite
Related Software
Math::XOR is a package to handle XOR encryption of string buffers. Free Download
Math::ODE Perl module allows you to solve N-th Order Ordinary Differential Equations with as little pain as possible. Free Download
JIMaths is a small application that helps teachers automate the process of creating simple arithmetic problems. Free Download
Math::Calc::Euro is a Perl module to convert between EUR and the old currencies. Free Download
Math::HashSum can sum a list of key-value pairs on a per-key basis. Free Download
StealIt is a service menu to take ownership on selected file/directory. Free Download
Math::Bezier::Convert is a Perl module to convert cubic and quadratic bezier each other. Free Download
Math::MatrixReal::Aug Perl module contains additional methods for Math::MatrixReal. Free Download
Latest Software
Popular Software
Favourite Software