PDL::Io::FastRaw -- A simple, fast and convenient io format for PerlDL.
use PDL; use PDL::Io::FastRaw; writefraw($pdl,"fname"); $pdl2 = readfraw("fname");
This is a very simple and fast io format for PerlDL. The disk data consists of two files, a header metadata file in ASCII and a binary file consisting simply of consecutive bytes, shorts or whatever.
It is hoped that this will not only make for a simple PerlDL module for saving and retrieving these files but also make it easy for other programs to use these files.
The format for the header is simply
<typeid> <ndims> <dim0> <dim1> ...
These files are NOT interchangeable over network since the binary file is simply dumped from the memory region of the piddle. This is also what makes the approach efficient.
You could implement an interface using mmap for this module. In the case of huge data sets that you usually only need parts of, the benefit would be immense. Contact the author for instructions.
None known.
Copyright (C) Tuomas J. Lukka 1997. Redistribution in printed form forbidden.
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.