note
lin0
<p>Hi [zentara]</p>
<p>The core of PDL is written in the C programming language (see [http://pdl.sourceforge.net/PDLdocs/Internals.html|PDL::Internals]). Fortran is only used in some libraries such as PGPLOT (used for plotting) and Slatec (used for manipulating matrices, calculate Fast Fourier Transforms, fit data using polynomials, interpolate data, etc.). About the piddles' data types, here is a table that will show you the data types already defined (in the file Basic/Core/Types.pm.PL):</p>
<code>
PDL Type Real C Type
---------- --------------
byte unsigned char
short short
ushort unsigned short
long long int
longlong long long int
float float
double double
</code>
<p>Note that you can add new types as explained in [http://pdl.sourceforge.net/PDLdocs/Types.html#adding_removing_types|the PDL documentation]. You might also want to read the documentation on [http://pdl.sourceforge.net/PDLdocs/PP.html|PDL::PP] to learn how to add your own routines.</p>
<p>In short, I believe the computational accuracy of PDL to be closer to that of C than to the computational accuracy of Fortran.</p>
<p>Cheers,</p>
[lin0]
598007
598071