Listing 1.
Complete Listing of PDL Functions (as of PDL 1.11)
Karl Glazebrook and Frossie Economou
PDL: The Perl Data Language
The Perl Journal, Spring 1997
  Starred items (e.g. log10* act as mutators: when you say log10(inplace($a)), every element of $a is replaced with it's logarithm base 10.

Defined in PDL:Core

+ - * / > < >= <= << >> & | ^ ==
!= += -= *= /= %= **= <<= >>= &=
|= ^= <=> ** % ! ++ -- ""
atan2* sqrt* sin* cos* log* exp* abs*
X
~
byte short ushort long float double convert
pdl
topdl
howbig
nelem
dims
inplace
list
listindices
log10*
min max sum
zeroes ones
sequence
reshape
sec
int* set
at
axisvals* xvals* yvals* zvals*
rvals
callext

convolve
hist
stats
transpose
qsort*
median
oddmedian
Defined in PDL::Examples
fibonacci*

cc8compt*

Defined in PDL::Io
rfits
wfits
rcols
rgrep
rdsa
Defined in PDL::Graphics::PG (PGPLOT graphics)
imag
ctab
line
points
errb
cont
bin
hi2d
poly
vect
hold

release
rel
env
dev
Defined in PDL::Graphics::IIS (talk to IIS protocol image display widget)
iis
iiscur
iiscirc
saoimage
ximtool
PDL methodsv
flush
copy
new

Array operators/functions (same as Perl and C but they act element by element.)


Matrix multiplication
Matrix transpose
Type conversions

Create/copy a piddle
Coerce to piddle if scalar
Size of piddle datatype in bytes
Number of elements
Return list of dimensions
Perform operation in place
Convert piddle to list, e.g. for (list $x) { }
Return list of index values (1D)
Take log base 10
Min/max/sum of piddle
Create zero/one-filled piddle
Create sequence-filled piddle
Reshape the dimensions of a piddle
Subsection of a piddle
Insertion/Setting
Return pixel value at (x, y, z, ...)
Fill piddle with axis values
Fill piddle with distance from its center
Call external C code in dynamically loadable object
Convolve image with kernel (real space)
Histogram of data
Return mean and standard deviation
Matrix transpose
Quick sort piddle
Median of piddle
Lower odd median of piddle

Compute Fibonacci series (simple 1D example)

Connected 8-component labelling (2D example)


Read a FITS format file
Write a FITS format file
Read columns in a text file into piddles
Read regexp matches into piddles
Read a DSA format file (Starlink systems only)


Display an image
Load an image color table
Plot vector as connected points
Plot vector as points
Plot error bars
Display image as contour map
Plot vector as histogram—e.g. bin hist $data
Plot image as 2d histogram
Draw a polygon
Display 2 images as a vector field
Hold current plot window range, e.g. for overlays
Autoscale new plot window for each command
Synonym for "release"
Define a plot window, put on "hold"
Explicitly set a new PGPLOT graphics device


Display image
Return a cursor position
Draw circles on image display
Start SAOimage
Start Ximtool

Update C cache from piddle Perl data structure
Copy a piddle
Create a piddle