"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Basic/SourceFilter/NiceSlice.pm" between
PDL-2.081.tar.gz and PDL-2.082.tar.gz

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

NiceSlice.pm  (PDL-2.081):NiceSlice.pm  (PDL-2.082)
skipping to change at line 468 skipping to change at line 468
} }
BEGIN { BEGIN {
require "$PDL::NiceSlice::engine"; require "$PDL::NiceSlice::engine";
} }
=head1 NAME =head1 NAME
PDL::NiceSlice - toward a nicer slicing syntax for PDL PDL::NiceSlice - toward a nicer slicing syntax for PDL
=head1 SYNOPSYS =head1 SYNOPSIS
use PDL::NiceSlice; use PDL::NiceSlice;
$x(1:4) .= 2; # concise syntax for ranges $x(1:4) .= 2; # concise syntax for ranges
print $y((0),1:$end); # use variables in the slice expression print $y((0),1:$end); # use variables in the slice expression
$x->transpose->(($pos-1)) .= 0; # default method syntax $x->transpose->(($pos-1)) .= 0; # default method syntax
$idx = long 1, 7, 3, 0; # an ndarray of indices $idx = long 1, 7, 3, 0; # an ndarray of indices
$x(-3:2:2,$idx) += 3; # mix explicit indexing and ranges $x(-3:2:2,$idx) += 3; # mix explicit indexing and ranges
$x->clump(1,2)->(0:30); # 'default method' syntax $x->clump(1,2)->(0:30); # 'default method' syntax
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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