PDL::Types - define fundamental PDL Datatypes
use PDL::Types; $pdl = ushort( 2.0, 3.0 ); print "The actual c type used to store ushort's is '" . $pdl->type->realctype() . "'\n"; The actual c type used to store ushort's is 'unsigned short'
Internal module - holds all the PDL Type info. This can be accessed using the PDL::Type object returned by the type method.
PDL::Type
This module contains one object - PDL::Type - that is returned by the type method of a piddle. It has several methods, listed below, which provide an easy way to access type infotmation:
Returns the number representing this datatype (see get_datatype).
Returns one of 'PDL_B', 'PDL_S', 'PDL_US', 'PDL_L', 'PDL_F' or 'PDL_D'.
Returns the macro used to represent this type in C code (eg 'PDL_Long').
The letter used to represent this type in PP code code (eg 'U' for ushort).
The actual C type used to store this type.
The value returned by ctype without the 'PDL_'.
ctype
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install PDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDL
CPAN shell
perl -MCPAN -e shell install PDL
For more information on module installation, please visit the detailed CPAN module installation guide.