"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Basic/Slices/slices.pd" between
PDL-2.080.tar.gz and PDL-2.081.tar.gz

About: PDL (Perl Data Language) aims to turn perl into an efficient numerical language for scientific computing (similar to IDL and MatLab).

slices.pd  (PDL-2.080):slices.pd  (PDL-2.081)
skipping to change at line 1205 skipping to change at line 1205
} }
EOC EOC
Doc =><<'EOD', Doc =><<'EOD',
=for ref =for ref
Run-length encode a set of vectors. Run-length encode a set of vectors.
Higher-order rle(), for use with qsortvec(). Higher-order rle(), for use with qsortvec().
Given set of vectors $c, generate a vector $a with the number of occurrences of each element Given set of vectors $c, generate a vector $a with the number of occurrences of each element
(where an "element" is a vector of length $M ocurring in $c), (where an "element" is a vector of length $M occurring in $c),
and a set of vectors $b containing the unique values. and a set of vectors $b containing the unique values.
As for rle(), only the elements up to the first instance of 0 in $a should be co nsidered. As for rle(), only the elements up to the first instance of 0 in $a should be co nsidered.
Can be used together with clump() to run-length encode "values" of arbitrary dim ensions. Can be used together with clump() to run-length encode "values" of arbitrary dim ensions.
Can be used together with rotate(), cat(), append(), and qsortvec() to count N-g rams Can be used together with rotate(), cat(), append(), and qsortvec() to count N-g rams
over a 1d PDL. over a 1d PDL.
See also: L</rle>, L<PDL::Ufunc/qsortvec>, L<PDL::Primitive/uniqvec> See also: L</rle>, L<PDL::Ufunc/qsortvec>, L<PDL::Primitive/uniqvec>
Contributed by Bryan Jurish E<lt>moocow@cpan.orgE<gt>. Contributed by Bryan Jurish E<lt>moocow@cpan.orgE<gt>.
skipping to change at line 1354 skipping to change at line 1354
=for sig =for sig
Signature: (data(@vdims,N); int [o]counts(N); [o]elts(@vdims,N)) Signature: (data(@vdims,N); int [o]counts(N); [o]elts(@vdims,N))
=for ref =for ref
Run-length encode a set of (sorted) n-dimensional values. Run-length encode a set of (sorted) n-dimensional values.
Generalization of rle() and vv_rlevec(): Generalization of rle() and vv_rlevec():
given set of values $data, generate a vector $counts with the number of occurren ces of each element given set of values $data, generate a vector $counts with the number of occurren ces of each element
(where an "element" is a matrix of dimensions @vdims ocurring as a sequential ru n over the (where an "element" is a matrix of dimensions @vdims occurring as a sequential r un over the
final dimension in $data), and a set of vectors $elts containing the elements wh ich begin a run. final dimension in $data), and a set of vectors $elts containing the elements wh ich begin a run.
Really just a wrapper for clump() and rlevec(). Really just a wrapper for clump() and rlevec().
See also: L</rle>, L</rlevec>. See also: L</rle>, L</rlevec>.
Contributed by Bryan Jurish E<lt>moocow@cpan.orgE<gt>. Contributed by Bryan Jurish E<lt>moocow@cpan.orgE<gt>.
=cut =cut
*PDL::rleND = \&rleND; *PDL::rleND = \&rleND;
sub rleND { sub rleND {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)