Shift the values of an array around dimension (wrap around). More...

Modules

 shift
 The C++ interface for shift.
 
 af_shift
 The C interface for shift.
 
 af_shiftd
 The C interface for shiftd.
 

Detailed Description

Shift the values of an array around dimension (wrap around).

array a(seq(5)); //a=[0 1 2 3 4]
a = shift(a,2); //a=[3 4 0 1 2]
array a(seq(5)); //a=[0 1 2 3 4]
array b = constant(1,1,af::s32);
a = shift(a,b); //a=[4 0 1 2 3]