.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Math::GSL 3pm" .TH Math::GSL 3pm 2024-03-07 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Math::GSL \- Perl interface to the GNU Scientific Library (GSL) .SH VERSION .IX Header "VERSION" Version 0.43 .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 7 \& use Math::GSL::Matrix; \& my $matrix = Math::GSL::Matrix\->new(5,5); # 5x5 zero matrix \& # note that columns and rows are zero\-based \& $matrix\->set_col(0, [1..5]) # set *first* column to 1,2,3,4,5 \& \->set_row(2, [5..9]); # set *third* column to 5,6,7,8,9 \& my @matrix = $matrix\->as_list; # matrix as Perl list \& my $gsl_matrix = $matrix\->raw; # underlying GSL object \& \& use Math::GSL::RNG; \& my $rng = Math::GSL::RNG\->new; \& my @random_numbers = $rng\->get(1000); \& \& use Math::GSL::Deriv qw/:all/; \& my $function = sub { my $x=shift; sin($x**2) }; \& my ($status,$val,$err) = gsl_deriv_central($function, 5, 0.01 ); \& \& use Math::GSL qw/gsl_version/; \& # get a version object for the version of the underlying GSL library, \& # which will stringify to a version number \& my $gsl_version = gsl_version(); .Ve .PP Each GSL subsystem has its own module. For example, the random number generator subsystem is Math::GSL::RNG. Many subsystems have a more Perlish and object-oriented frontend which can be used, as the above example shows. The raw GSL object is useful for using the low-level GSL functions, which in the case of the Matrix subsystem, would be of the form gsl_matrix_* . Each module has further documentation about the low-level C functions as well as using the more intuitive (but slightly slower) object-oriented interface. .SH SUBSYSTEMS .IX Header "SUBSYSTEMS" Math::GSL::BLAS \- Linear Algebra Functions .PP Math::GSL::BSpline \- BSplines .PP Math::GSL::CBLAS \- Linear Algebra Functions .PP Math::GSL::CDF \- Cumulative Distribution Functions .PP Math::GSL::Chebyshev \- Chebyshev Polynomials .PP Math::GSL::Combination \- Combinatoric Functions .PP Math::GSL::Complex \- Complex Numbers .PP Math::GSL::Const \- Various Constants .PP Math::GSL::DHT \- Discrete Hankel Transforms .PP Math::GSL::Deriv \- Numerical Derivative .PP Math::GSL::Eigen \- Eigenvalues and Eigenvectors .PP Math::GSL::Errno \- Error Handling .PP Math::GSL::FFT \- Fast Fourier Transform .PP Math::GSL::Fit \- Curve Fitting .PP Math::GSL::Heapsort \- Sorting Heaps .PP Math::GSL::Histogram \- Histograms .PP Math::GSL::Histogram2D \- 2D Histograms .PP Math::GSL::Integration \- Numerical Integration .PP Math::GSL::Interp \- Interpolation .PP Math::GSL::Linalg \- Linear Algebra .PP Math::GSL::Machine \- Machine Specific Information .PP Math::GSL::Matrix \- NxM Matrices .PP Math::GSL::Min \- Minimization .PP Math::GSL::Monte \- Monte Carlo Integrations .PP Math::GSL::Multifit \- Multivariable Fitting .PP Math::GSL::Multimin \- Multivariable Minimization .PP Math::GSL::Multiroots \- Muiltvariable Root Finding .PP Math::GSL::NTuple \- N Tuples .PP Math::GSL::ODEIV \- Ordinary Differential Equation Solvers (Initial Value Problems) .PP Math::GSL::Permutation \- Permutations .PP Math::GSL::Poly \- Polynmials .PP Math::GSL::PowInt \- Integer Power Functions .PP Math::GSL::QRNG \- Quasi-Random Number Generators .PP Math::GSL::RNG \- Random Number Generators .PP Math::GSL::Randist \- Random Number Distributions .PP Math::GSL::Roots \- Root Finding Algorithms .PP Math::GSL::Rstat \- Running Statistics .PP Math::GSL::SF \- Special Functions .PP Math::GSL::Siman \- Simulated Annealing .PP Math::GSL::Sort \- Sorting .PP Math::GSL::SparseMatrix \- Sparse Matrices .PP Math::GSL::Spline \- Splines .PP Math::GSL::Statistics \- Statistics Functions .PP Math::GSL::Sum \- Summation .PP Math::GSL::Sys \- System utility functions .PP Math::GSL::Vector \- N\-dimensional Vectors .PP Math::GSL::Wavelet \- Basic Wavelets .PP Math::GSL::Wavelet2D \- 2D Wavelets .SH AUTHORS .IX Header "AUTHORS" Jonathan "Duke" Leto, \f(CW\*(C`\*(C'\fR and Thierry Moisan \f(CW\*(C`\*(C'\fR .SH BUGS .IX Header "BUGS" This software is still in active development, we appreciate your detailed bug reports and documentation patches. Please report any bugs or feature requests to the authors directly. .SH "COMPILING ISSUES" .IX Header "COMPILING ISSUES" Some operating system configurations will make the compilation of Math::GSL fail. One common problem that happens on RedHat Linux (RHEL) and CentOS looks like this: .PP .Vb 4 \& Error: Can\*(Aqt load \*(Aq/usr/src/misc/perl\-package/Math\-GSL\-0.20/blib/arch/auto/Math/GSL/Errno/Errno.so\*(Aq \& for module Math::GSL::Errno: /usr/src/misc/perl\-package/Math\-GSL\-0.20/blib/arch/auto/Math/GSL/Errno/Errno.so: \& cannot restore segment prot after reloc: Permission denied at /usr/lib/perl5/5.10.0/i386\-linux\-thread\-multi/DynaLoader.pm line 203. \& # at blib/lib/Math/GSL/Errno.pm line 10 .Ve .PP This is due to the SE Linux setting being set to "enforcing". To Temporarily disable enforcement on a running system: .PP .Vb 1 \& /usr/sbin/setenforce 0 .Ve .PP To permanently disable enforcement during a system startup change "enforcing" to "disabled" in ''/etc/selinux/config'' and reboot. .SH SUPPORT .IX Header "SUPPORT" You can find documentation for this module with the perldoc command. .PP .Vb 1 \& perldoc Math::GSL .Ve .PP or online at .IP \(bu 4 AnnoCPAN: Annotated CPAN documentation .Sp .IP \(bu 4 CPAN Ratings .Sp .IP \(bu 4 Search CPAN .Sp .SH DEVELOPMENT .IX Header "DEVELOPMENT" If you would like the help develop Math::GSL, visit us on Github and fork, send Pull Requests and/or create issues. .PP To view the latest source code online, go to . .PP The latest version of Git can be found at . .SH ACKNOWLEDGEMENTS .IX Header "ACKNOWLEDGEMENTS" Thanks to PDX.pm, The Perl Foundation and everyone at Google who makes the Summer of Code happen each year. You rock. .SH DEDICATION .IX Header "DEDICATION" This Perl module is dedicated in memory of Nick Ing-Simmons. .SH "COPYRIGHT & LICENSE" .IX Header "COPYRIGHT & LICENSE" Copyright (C) 2008\-2023 Jonathan "Duke" Leto, Thierry Moisan all rights reserved. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.