Warning: If it seems that this document has gotten out of date, please inform the PerlDL developers email list (address in the README file) about it. This may well happen.
The pdl struct is defined in pdl.h and the meanings of the fields are
$a = pdl 2,3,4; $b = pdl 4,5,6; $c = $a + $b; # Note: no dataflow (not asked for)
here, the trans field in $c
contains a pointer to a
transformation. Only when $a
or $b
is changed, is
the transformation destroyed and the field cleared. To see whether data is
flowing, check the flags field of the trans struct.
pdlapi.c
for the code handling this. Also, slices.pd
defines some things with / for this.
Copyright(C)
1997 Tuomas J. Lukka (lukka@fas.harvard.edu).
Redistribution in the same form is allowed but reprinting requires a
permission from the author.