Provided by: libpdl-vectorvalued-perl_1.0.9-1build1_amd64

**NAME**

PDL::VectorValued - Utilities for vector-valued PDLs

**SYNOPSIS**

use PDL; use PDL::VectorValued; ##--------------------------------------------------------------------- ## ... stuff happens

**DESCRIPTION**

PDL::VectorValued provides generalizations of some elementary PDL functions to higher- order PDLs which treat vectors as "data values".

**FUNCTIONS**

vv_uniqvecSignature: (v(N,M); [o]vu(N,MU)) Drop-in replacement for brokenuniqvec()which usesvv_qsortvec(). Otherwise copied from PDL::Primitive::primitive.pd. See also: PDL::VectorValued::Utils::vv_qsortvec, PDL::Primitive::uniqvec.

**Higher-Order** **Run-Length** **Encoding** **and** **Decoding**

The following functions generalize the builtin PDL functionsrle()andrld()for higher- order "values". See also:PDL::VectorValued::Utils::rlevec(),PDL::VectorValued::Utils::rldvec().rleNDSignature: (data(@vdims,N); int [o]counts(N); [o]elts(@vdims,N)) Run-length encode a set of (sorted) n-dimensional values. Generalization ofrle()andrlevec(): given set of values $data, generate a vector $counts with the number of occurrences of each element (where an "element" is a matrix of dimensions @vdims ocurring as a sequential run over the final dimension in $data), and a set of vectors $elts containing the elements which begin a run. Really just a wrapper forclump()andrlevec(). See also: PDL::Slices::rle, PDL::Ngrams::VectorValued::Utils::rlevec.rldNDSignature: (int counts(N); elts(@vdims,N); [o]data(@vdims,N);) Run-length decode a set of (sorted) n-dimensional values. Generalization ofrld()andrldvec(): given a vector $counts()of the number of occurrences of each @vdims-dimensioned element, and a set $elts()of @vdims-dimensioned elements, run-length decode to $data(). Really just a wrapper forclump()andrldvec(). See also: PDL::Slices::rld, PDL::VectorValued::Utils::rldvec

**Datatype** **Utilities**

vv_indxSignature: vv_indx() Returns PDL::Type subclass used for indices. If built with PDL < v2.007, this should return "PDL::long", otherwise "PDL::indx".Low-LevelFunctionsSome additional low-level functions are provided in the PDL::VectorValued::Utils package. See PDL::VectorValued::Utils for details.

**ACKNOWLEDGEMENTS**

perl by Larry Wall.

**AUTHOR**

Bryan Jurish <moocow@cpan.org> PDL by Karl Glazebrook, Tuomas J. Lukka, Christian Soeller, and others.

**COPYRIGHT**

Copyright (c) 2007, Bryan Jurish. All rights reserved. This package is free software. You may redistribute it and/or modify it under the same terms as Perl itself.

**SEE** **ALSO**

perl(1),PDL(3perl),PDL::VectorValued::Utils(3perl)