Query: pdl::types
OS: redhat
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Types(3) User Contributed Perl Documentation Types(3)NAMEPDL::Types - define fundamental PDL DatatypesSYNOPSISuse PDL::Types; $pdl = ushort( 2.0, 3.0 ); print "The actual c type used to store ushort's is '" . $pdl->type->realctype() . "' "; The actual c type used to store ushort's is 'unsigned short'DESCRIPTIONInternal module - holds all the PDL Type info. This can be accessed using the "PDL::Type" object returned by the type method.OBJECTSThis module declares one class - "PDL::Type" - objects of this class are returned by the type method of a piddle. It has several methods, listed below, which provide an easy way to access type information: Additionally, comparison and stringification are overloaded so that you can compare and print type objects, e.g. $nofloat = 1 if $pdl->type < float; die "must be double" if $type != double; For further examples check again the type method. enum Returns the number representing this datatype (see get_datatype). symbol Returns one of 'PDL_B', 'PDL_S', 'PDL_US', 'PDL_L', 'PDL_F' or 'PDL_D'. ctype Returns the macro used to represent this type in C code (eg 'PDL_Long'). ppsym The letter used to represent this type in PP code code (eg 'U' for ushort). realctype The actual C type used to store this type. shortctype The value returned by "ctype" without the 'PDL_'. perl v5.8.0 2003-01-29 Types(3)
Related Man Pages |
---|
pptemplate(1) - redhat |
pdl(3) - suse |
pdl::types(3) - suse |
pdl::bad(3) - suse |
pdl::dbg(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Reduced Activity Notification |
Docker learning Phase-I |
About TODO |
Package |