The C++ interface for shift.
More...
| array | shift (const array &in, int dim0=0, int dim1=0, int dim2=0, int dim3=0) |
| | Shift the values of an array around dimension (wrap around). More...
|
| |
| array | shift (const array &in, const array &shift) |
| | Shift the values of an array around dimension (wrap around). More...
|
| |
The C++ interface for shift.
array a(seq(5));
array a(seq(5));
| array af::shift |
( |
const array & |
in, |
|
|
int |
dim0 = 0, |
|
|
int |
dim1 = 0, |
|
|
int |
dim2 = 0, |
|
|
int |
dim3 = 0 |
|
) |
| |
Shift the values of an array around dimension (wrap around).
- Parameters
-
| [in] | in | |
| [in] | dim0 | Shift along first dimension |
| [in] | dim1 | Shift along second dimension |
| [in] | dim2 | Shift along third dimension |
| [in] | dim3 | Shift along fourth dimension |
- Returns
- shifted version of array
| array af::shift |
( |
const array & |
in, |
|
|
const array & |
shift |
|
) |
| |
Shift the values of an array around dimension (wrap around).
- Parameters
-
| [in] | in | |
| [in] | shift | integer array (s32 preferred) indicating shifts for each dimension |
- Returns
- shifted version of array