Circular shift slong specified dimensions. More...

Functions

AFAPI array shift (const array &in, const int x, const int y=0, const int z=0, const int w=0)
 
AFAPI af_err af_shift (af_array *out, const af_array in, const int x, const int y, const int z, const int w)
 

Detailed Description

Circular shift slong specified dimensions.

Shifts the values in a circular fashion along the specified dimesion.


Function Documentation

◆ af_shift()

AFAPI af_err af_shift ( af_array out,
const af_array  in,
const int  x,
const int  y,
const int  z,
const int  w 
)
Parameters
[in]outis the shifted array
[in]inis the input array
[in]xspecifies the shift along first dimension
[in]yspecifies the shift along second dimension
[in]zspecifies the shift along third dimension
[in]wspecifies the shift along fourth dimension

◆ shift()

AFAPI array af::shift ( const array in,
const int  x,
const int  y = 0,
const int  z = 0,
const int  w = 0 
)
Parameters
[in]inis the input array
[in]xspecifies the shift along first dimension
[in]yspecifies the shift along second dimension
[in]zspecifies the shift along third dimension
[in]wspecifies the shift along fourth dimension
Returns
the shifted output