it's actually shift.
My point is it does not accept *any* argument for y, even if it's an
appropriate piddle.

pdl> help $c
This variable is Double D [2,3]                P            0.05KB

pdl> help $c->rotate(1)
This variable is Double D [2,3]                -C           0.00KB

pdl> $d=$c->copy

pdl> help $c->rotate(1,$d)
Runtime error: Usage:  PDL::rotate(x,shift,y) (you may leave temporaries
or output variables out of list) at (eval 1986) line 5.



On 02/14/2014 05:02 PM, Craig DeForest wrote:
> "shift" -- can you tell I typed the signature instead of cut/pasting? :-)
>
> On Feb 14, 2014, at 9:01 AM, Craig DeForest <defor...@boulder.swri.edu
> <mailto:defor...@boulder.swri.edu>> wrote:
>
>> Module  PDL::Slices
>>   rotate
>>       Signature: (x(n); indx shict(); [oca]y(n))
>>
>>
>> The 'y' has an [oca] modifier, which IIRC means "Output / create
>> always" - so no input is needed.
>>
>>
>> On Feb 14, 2014, at 8:32 AM, Ingo Schmid <ingo...@gmx.at
>> <mailto:ingo...@gmx.at>> wrote:
>>
>>> Hi,
>>>
>>> I don't seem to make sense of the signature of rotate.
>>>
>>> Usage:  PDL::rotate(x,shift,y)
>>>
>>> Whatever is passed as a third argument, it throws an error.
>>>
>>> Ingo
>>> _______________________________________________
>>> Perldl mailing list
>>> Perldl@jach.hawaii.edu <mailto:Perldl@jach.hawaii.edu>
>>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>>
>

_______________________________________________
Perldl mailing list
Perldl@jach.hawaii.edu
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to