Find intersection of two inputs. More...

Functions

AFAPI array setIntersect (const array &first, const array &second, const bool is_unique=false)
 C++ Interface for performing intersect of two arrays. More...
 
AFAPI af_err af_set_intersect (af_array *out, const af_array first, const af_array second, const bool is_unique)
 C Interface for performing intersect of two arrays. More...
 
AFAPI array setintersect (const array &first, const array &second, const bool is_unique=false)
 C++ Interface for performing intersect of two arrays. More...
 

Detailed Description

Find intersection of two inputs.

Function Documentation

AFAPI af_err af_set_intersect ( af_array out,
const af_array  first,
const af_array  second,
const bool  is_unique 
)

C Interface for performing intersect of two arrays.

Parameters
[out]outwill contain the intersection of first and second
[in]firstis the first array
[in]secondis the second array
[in]is_uniqueif true, skips calling unique internally
Returns
AF_SUCCESS if the execution completes properly
AFAPI array af::setintersect ( const array first,
const array second,
const bool  is_unique = false 
)

C++ Interface for performing intersect of two arrays.

Parameters
[in]firstis the first array
[in]secondis the second array
[in]is_uniqueif true, skips calling unique internally
Returns
the intersection of first and second
Deprecated:
Use setIntersect instead
AFAPI array af::setIntersect ( const array first,
const array second,
const bool  is_unique = false 
)

C++ Interface for performing intersect of two arrays.

Parameters
[in]firstis the first array
[in]secondis the second array
[in]is_uniqueif true, skips calling unique internally
Returns
the intersection of first and second