A high-performance general-purpose compute library

Flip the input along specified 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 specified dimension.

Mirrors the array along the specified dimensions.


Function Documentation

◆ af_flip()

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

◆ flip()

AFAPI array 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