1PDL(3) User Contributed Perl Documentation PDL(3)
2
3
4
6 PDL - the Perl Data Language
7
9 (For the exported PDL constructor, pdl(), see PDL::Core)
10
11 PDL is the Perl Data Language, a perl extension that is designed for
12 scientific and bulk numeric data processing and display. It extends
13 perl's syntax and includes fully vectorized, multidimensional array
14 handling, plus several paths for device-independent graphics output.
15
16 PDL is fast, comparable and often outperforming IDL and MATLAB in real
17 world applications. PDL allows large N-dimensional data sets such as
18 large images, spectra, etc to be stored efficiently and manipulated
19 quickly.
20
22 For a description of the vectorization (also called "threading"), see
23 PDL::Core.
24
26 The PDL package includes an interactive shell. You can learn about it,
27 run "perldoc perldl", or run the shell "perldl" or "pdl2" and type
28 "help".
29
31 If you want to search for a function name, you should use the PDL shell
32 along with the "help" or "apropos" command (to do a fuzzy search). For
33 example:
34
35 pdl> apropos xval
36 xlinvals X axis values between endpoints (see xvals).
37 xlogvals X axis values logarithmicly spaced...
38 xvals Fills a piddle with X index values...
39 yvals Fills a piddle with Y index values. See the CAVEAT for xvals.
40 zvals Fills a piddle with Z index values. See the CAVEAT for xvals.
41
42 To learn more about the PDL shell, see perldl or pdl2.
43
45 Most PDL documentation describes the language features. The number of
46 PDL pages is too great to list here. The following pages offer some
47 guidance to help you find the documentation you need.
48
49 PDL::FAQ
50 Frequently asked questions about PDL. This page covers a lot of
51 questions that do not fall neatly into any of the documentation
52 categories.
53
54 PDL::Tutorials
55 A guide to PDL's tutorial-style documentation. With topics from
56 beginner to advanced, these pages teach you various aspects of PDL
57 step by step.
58
59 PDL::Modules
60 A guide to PDL's module reference. Modules are organized by level
61 (foundation to advanced) and by category (graphics, numerical
62 methods, etc) to help you find the module you need as quickly as
63 possible.
64
65 PDL::Course
66 This page compiles PDL's tutorial and reference pages into a
67 comprehensive course that takes you from a complete beginner level
68 to expert.
69
70 PDL::Index
71 List of all available documentation, sorted alphabetically. If you
72 cannot find what you are looking for, try here.
73
75 PDL includes about a dozen perl modules that form the core of the
76 language, plus additional modules that add further functionality. The
77 perl module "PDL" loads all of the core modules automatically, making
78 their functions available in the current perl namespace. Some notes:
79
80 Modules loaded by default
81 See the SYNOPSIS section at the end of this document for a list of
82 modules loaded by default.
83
84 PDL::Lite and PDL::LiteF
85 These are lighter-weight alternatives to the standard PDL module.
86 Consider using these modules if startup time becomes an issue.
87
88 Exports
89 "use PDL;" exports a large number of routines into the calling
90 namespace. If you want to avoid namespace pollution, you must
91 instead "use PDL::Lite", and include any additional modules
92 explicitly.
93
94 PDL::NiceSlice
95 Note that the PDL::NiceSlice syntax is NOT automatically loaded by
96 "use PDL;". If you want to use the extended slicing syntax in a
97 standalone script, you must also say "use PDL::NiceSlice;".
98
99 PDL::Math
100 The PDL::Math module has been added to the list of modules for
101 versions later than 2.3.1. Note that PDL::Math is still not
102 included in the PDL::Lite and PDL::LiteF start-up modules.
103
105 use PDL; # Is equivalent to the following:
106
107 use PDL::Core;
108 use PDL::Ops;
109 use PDL::Primitive;
110 use PDL::Ufunc;
111 use PDL::Basic;
112 use PDL::Slices;
113 use PDL::Bad;
114 use PDL::MatrixOps;
115 use PDL::Math;
116 use PDL::Version;
117 use PDL::IO::Misc;
118 use PDL::IO::FITS;
119 use PDL::IO::Pic;
120 use PDL::IO::Storable;
121 use PDL::Lvalue;
122
123
124
125perl v5.32.0 2020-09-17 PDL(3)