Flatten the input to a single dimension. More...

Functions

AFAPI array flat (const array &in)
 
AFAPI af_err af_flat (af_array *out, const af_array in)
 

Detailed Description

Flatten the input to a single dimension.

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 
)
Parameters
[out]outis the flat array
[in]inis the input array

◆ flat()

AFAPI array af::flat ( const array in)
Parameters
[in]inis the input array
Returns
the flat array
Examples:
graphics/field.cpp, and pde/swe.cpp.