Flip the input along sepcified dimension. More...

Functions

AFAPI array flip (const array &in, const unsigned dim)
 
AFAPI af_err af_flip (af_array *out, const af_array in, const unsigned dim)
 

Detailed Description

Flip the input along sepcified dimension.

Mirrors the array along the specified dimensions.


Function Documentation

AFAPI af_err af_flip ( af_array out,
const af_array  in,
const unsigned  dim 
)
Parameters
[out]outis the flipped array
[in]inis the input array
[in]dimis the dimensions to flip the array
AFAPI array af::flip ( const array in,
const unsigned  dim 
)
Parameters
[in]inis the input array
[in]dimis the dimensions to flip the array
Returns
the flipped array
Examples:
getting_started/integer.cpp.