Copyright (C) 2000-2012 |
Manpages TypesSection: User Contributed Perl Documentation (3)Updated: 2002-04-08 Index Return to Main Contents 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() . "'\n"; 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.
IndexThis document was created by man2html, using the manual pages. Time: 10:56:47 GMT, April 20, 2024 |