slices.pd (PDL-2.076) | : | slices.pd (PDL-2.077) | ||
---|---|---|---|---|
skipping to change at line 2109 | skipping to change at line 2109 | |||
$slice = $data->slice([2,3],'x',[2,2,0],"-1:1:-1", "*3"); | $slice = $data->slice([2,3],'x',[2,2,0],"-1:1:-1", "*3"); | |||
=for ref | =for ref | |||
Extract rectangular slices of an ndarray, from a string specifier, | Extract rectangular slices of an ndarray, from a string specifier, | |||
an array ref specifier, or a combination. | an array ref specifier, or a combination. | |||
C<slice> is the main method for extracting regions of PDLs and | C<slice> is the main method for extracting regions of PDLs and | |||
manipulating their dimensionality. You can call it directly or | manipulating their dimensionality. You can call it directly or | |||
via he L<NiceSlice|PDL::NiceSlice> source prefilter that extends | via the L<NiceSlice|PDL::NiceSlice> source prefilter that extends | |||
Perl syntax to include array slicing. | Perl syntax to include array slicing. | |||
C<slice> can extract regions along each dimension of a source PDL, | C<slice> can extract regions along each dimension of a source PDL, | |||
subsample or reverse those regions, dice each dimension by selecting a | subsample or reverse those regions, dice each dimension by selecting a | |||
list of locations along it, or basic PDL indexing routine. The | list of locations along it, or basic PDL indexing routine. The | |||
selected subfield remains connected to the original PDL via dataflow. | selected subfield remains connected to the original PDL via dataflow. | |||
In most cases this neither allocates more memory nor slows down | In most cases this neither allocates more memory nor slows down | |||
subsequent operations on either of the two connected PDLs. | subsequent operations on either of the two connected PDLs. | |||
You pass in a list of arguments. Each term in the list controls | You pass in a list of arguments. Each term in the list controls | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |