Flatten the input array into a vector. More...

array flat (const array &A)
 No work is done (data is simply shared) so this is effectively a noop. More...
 

Detailed Description

Flatten the input array into a vector.

Flatten an array into column vector effectively a noop.

array a; //a=[1 3]
// [2 4]
a = flat(a); //a=[1 2 3 4]

Function Documentation

array af::flat ( const array &  A)

No work is done (data is simply shared) so this is effectively a noop.

array a; //a=[1 3]
// [2 4]
a = flat(a); //a=[1 2 3 4]
Parameters
[in]A
Returns
column vector with same elements as original