NAME

Data::Frame::PDL - A mixin to add some methods to PDL

VERSION

version 0.004_002

DESCRIPTION

This module provides a role that can add a few methods to the PDL class.

It's an internal module used by Data::Frame. Do not use it in your code!

METHODS

length()

Returns the length of the first dimension.

diff($lag=1)

flatten()

This is same as @{$self->unpdl}.

flatten_deep()

This is same as list().

repeat($n)

Repeat on the first dimension for $n times.

Only works with 1D piddle.

repeat_to_length($length)

Repeat to have the given length.

Only works with 1D piddle.

id

Compute a unique numeric id for each element in a piddle.

SEE ALSO

PDL

AUTHORS

  • Zakariyya Mughal <zmughal@cpan.org>

  • Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014, 2019 by Zakariyya Mughal, Stephan Loyd.

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