Joshua Nathaniel Pritikin > ObjStore-Lib-PDL-0.92 > ObjStore::Lib::PDL

Download:
ObjStore-Lib-PDL-0.92.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.92   Source  

NAME ^

ObjStore::Lib::PDL - Persistent PDL-compatible matrices

SYNOPSIS ^

    use PDL::Lite;
    use ObjStore::Lib::PDL;

    begin 'update', sub {
      my $pdl = ObjStore::Lib::PDL->new($near,
                          { Datatype => PDL::float(), Dims => [3,3] });

      $pdl->slice(":,4")->clump(2) *= 2;  #or whatever
    };
    die if $@;

DESCRIPTION ^

The main thing of interest is that dimensions are arranged in memory such that the first dimension is the most packed. For example, in a PDL of dimensions [2,3] the layout is as follows:

  [0,1]
  [2,3]
  [4,5]

Be aware that this memory layout convention is dependent on the implementation of PDL. It is, however, very unlikely to change.

SEE ALSO ^

PDL

AUTHOR ^

Copyright © 1999 Joshua Nathaniel Pritikin. All rights reserved.

This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)