Skip to content

PDLPorters/pdl

Repository files navigation

Perl Data Language (PDL)

PDL logo

Service Build status
GitHub CI Build Status
Cirrus CI Build Status

Coverage Status CPAN version

PDL ("Perl Data Language") gives standard Perl the ability to compactly store and speedily manipulate the large N-dimensional data arrays which are the bread and butter of scientific computing.

PDL turns Perl into a free, array-oriented, numerical language similar to (but, we believe, better than) such commercial packages as IDL and MatLab. One can write simple perl expressions to manipulate entire numerical arrays all at once. Simple interactive shells, perldl and pdl2, are provided for use from the command line along with the PDL module for use in Perl scripts.

WARNING: There is absolutely no warranty for this software package. See the file COPYING for details.

Important reading

Before sending us your questions, please see the following files for further information, and check for any open issues.

  • PDL::Bugs: Basic installation instructions
  • Changes: A list of features or issues with regard to the current version, always worth checking!
  • PDL::Bugs: How to make a bug report,
  • PDL::FAQ: The FAQ in pod format. Try perldoc PDL::FAQ after installation.
  • PDL::QuickStart: A quick overview of PDL. Try perldoc PDL::QuickStart after installation.
  • PDL::BadValues: A discussion of the bad value support in PDL
  • PDL::BadValues: How to participate in the development of PDL

Note: Most PDL documentation is available online within the PDL shell, perldl (or pdl2). Try the help command within either shell.

PDL -- the package

The Perl Data Language (a.k.a. PerlDL or PDL) project aims to turn perl into an efficient numerical language for scientific computing. The PDL module gives standard perl the ability to compactly store and speedily manipulate the large N-dimensional data sets which are the bread and butter of scientific computing. e.g. $x=$y+$c can add two 2048x2048 images in only a fraction of a second.

The aim is to provide tons of useful functionality for scientific and numeric analysis.

Check the pdl web site for more information.

Installation

Please read the installation guide linked above for information on how to install PDL. The Changes file contains important version specific information. Be sure to check for any open issues if you have any installation issues.

Once you have built PDL and either installed it or done make, try either

perl -Mblib blib/script/perldl

from within the root of the PDL tree or just

pdl

if you have installed PDL already (make install) to get the interactive PDL shell. In this shell, help gives you access to PDL documentation for each function separately (help help for more about this) and demo gives you some basic examples of what you can do.

Bug Reports

You can check the existing PDL bugs on GitHub here.

The mailing list archives can be searched/read here.

Questions about problems and possible bugs can be discussed via the pdl-general mailing list. This is very useful if you are not sure what you have is a bug or not. For example, the list is the place to go for install problems.

If you need to post a problem report, and after checking with the pdl-general list that it is a bug, please use the GitHub issue tracker system following the guidance in PDL::Bugs.

Notes

Directory structure:

Basic/ : The stuff that makes use PDL work, including demos which are a showcase for PDL: type demo at the perldl prompt.

Basic/examples/ : Sample programs using PDL

Basic/utils/ : Utilities relating to PDL

Graphics/ : The stuff that allows PDL to make pictures

IO/ : The stuff that PDL needs to write and read various file formats

Libtmp/ : The stuff that PDL would still be useful without but which makes PDL even more useful

Comments are welcome - so are volunteers to write code and documentation! Please contact the developers mailing list [email protected] (subscription info) with ideas and suggestions.

The PDL developers.

Installation Reports:

The CPAN Testers' result page provides a database showing the results of compiling PDL and many other CPAN packages on multiple platforms.