Ingo Schmid
2014-02-14 19:43:23 UTC
Hi,
this module is an extension to PDL, giving dimensions a meaning. They
have namesand data range (or values if not evenlyspaced).Utility
functions store and retrieve this from your piddle header.
I'm too lazy to remember and keep track of the order of dimensions, so I
wrote this module. Maybe some of you find it useful.
More interesting, wrappers to slice andother functions exist, so you
don't have to do your beloved
$pdl->mv(3,0)->rotate($x)->mv(0,3),
instead you can say
nop($pdl,'rotate','z',$x).
Or you can say
ncop($a,$b,'plus',0)
to add arbitrarily shaped piddles. Equally named dims obey the threading
rules, otherwise they are concatenated.
$pdl: [10,10,10,4]
dims: 'x','y','z','t'
$slice = sln($pdl, x=>'0:10:2', z=>"$a:$b:$c",);
I think you guess this one.
I just uploaded the module to pause, give it a few hours to appear on cpan.
Ingo
this module is an extension to PDL, giving dimensions a meaning. They
have namesand data range (or values if not evenlyspaced).Utility
functions store and retrieve this from your piddle header.
I'm too lazy to remember and keep track of the order of dimensions, so I
wrote this module. Maybe some of you find it useful.
More interesting, wrappers to slice andother functions exist, so you
don't have to do your beloved
$pdl->mv(3,0)->rotate($x)->mv(0,3),
instead you can say
nop($pdl,'rotate','z',$x).
Or you can say
ncop($a,$b,'plus',0)
to add arbitrarily shaped piddles. Equally named dims obey the threading
rules, otherwise they are concatenated.
$pdl: [10,10,10,4]
dims: 'x','y','z','t'
$slice = sln($pdl, x=>'0:10:2', z=>"$a:$b:$c",);
I think you guess this one.
I just uploaded the module to pause, give it a few hours to appear on cpan.
Ingo