A high-performance general-purpose compute library

Flip the input along a specified dimension. More...

Functions

AFAPI array flip (const array &in, const unsigned dim)
 C++ Interface to flip an array. More...
 
AFAPI af_err af_flip (af_array *out, const af_array in, const unsigned dim)
 C Interface to flip an array. More...
 

Detailed Description

Flip the input along a specified dimension.

Mirrors the array along the specified dimension.


Function Documentation

◆ af_flip()

AFAPI af_err af_flip ( af_array out,
const af_array  in,
const unsigned  dim 
)

C Interface to flip an array.

Parameters
[out]outflipped array
[in]ininput array
[in]dimdimension to flip
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ flip()

AFAPI array flip ( const array in,
const unsigned  dim 
)

C++ Interface to flip an array.

Parameters
[in]ininput array
[in]dimdimension to flip
Returns
flipped array