A high-performance general-purpose compute library

Flatten an array. More...

Functions

AFAPI array flat (const array &in)
 C++ Interface to flatten an array. More...
 
AFAPI af_err af_flat (af_array *out, const af_array in)
 C Interface to flatten an array. More...
 

Detailed Description

Flatten an array.

Simply returns the array as a vector. This is a NOOP.


Function Documentation

◆ af_flat()

AFAPI af_err af_flat ( af_array out,
const af_array  in 
)

C Interface to flatten an array.

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

◆ flat()

AFAPI array flat ( const array in)

C++ Interface to flatten an array.

Parameters
[in]ininput array
Returns
flat array