Skip to content

EntropyOrg/p5-Data-Printer-Filter-PDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Data::Printer::Filter::PDL

VERSION

version 1.001

SYNOPSIS

use PDL;
use Data::Printer;

my $pdl = sequence(2,2);
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.

NAME

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

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:

filters = 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'          => 0,
        'PDL::Char'    => 0,
        'PDL::Complex' => 0,
    },
});

BUGS

Report bugs and submit patches to the repository on GitHub.

SEE ALSO

Data::Printer, PDL, Reply::Plugin::DataPrinter, 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.

AUTHOR

Zakariyya Mughal <zmughal@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Zakariyya Mughal.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.