Zakariyya Mughal > Data-Printer-Filter-PDL > Data::Printer::Filter::PDL

Download:
Data-Printer-Filter-PDL-0.005.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.005   Source  

NAME ^

Data::Printer::Filter::PDL - Filter for Data::Printer that handles PDL data.

SYNOPSIS ^

    use PDL;
    use Data::Printer;
     
    my $pdl = sequence(10,10);
    p $pdl;
     
    __END__
     
    PDL {
        Data     : [
                    [0 1]
                    [2 3]
                   ]
        Type     : double
        Shape    : [2 2]
        Nelem    : 4
        Min      : 0
        Max      : 3
        Badflag  : No
        Has Bads : No
    }

DESCRIPTION ^

This module provides formatting for PDL data that can be used to quickly see the contents of a PDL variable.

CONFIGURATION ^

Modify $PDL::toolongtoprint to control when the contents of piddles with many elements are displayed..

EXAMPLES ^

You will want to configure Data::Printer to use this module by creating a .dataprinter file in your $HOME directory:

    {
        colored => 1,
        filters => {
          -external => [ 'PDL' ],
        }
    };

If you are using this module with the plugin Devel::REPL::Plugin::DataPrinter, you may want to add the following to your repl.rc or .perldlrc so that PDL subclass data is displayed correctly in Devel::REPL:

    $_REPL->dataprinter_config({
        stringify => {
            'PDL::Char' => 0,
            'PDL::Complex' => 0,
        },
    });

BUGS ^

Report bugs and submit patches to the repository on GitHub.

SEE ALSO ^

Data::Printer, PDL, Devel::REPL::Plugin::DataPrinter

COPYRIGHT ^

Copyright 2013 Zakariyya Mughal.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.

ACKNOWLEDGMENTS ^

Thanks to Joel Berger for the original code that this was based upon.

syntax highlighting: