NAME

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

VERSION

version 0.006002

DESCRIPTION

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

It's an internal module used by the Data::Frame library to add a few methods to the PDL class. Do not directly use this module in your code, as the module name may change in future.

METHODS

length

length()

Returns the length of the first dimension.

number_of_rows

number_of_rows()

Deprecated in favor of length.

diff

diff($lag=1)

flatten

flatten()

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

flatten_deep

flatten_deep()

This is same as list().

repeat

repeat($n)

Repeat on the first dimension for $n times.

Only works with 1D piddle.

repeat_to_length

repeat_to_length($length)

Repeat to have the given length.

Only works with 1D piddle.

id

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-2022 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.