A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.arrayfire.org/docs/group__set__func__intersect.htm below:

ArrayFire: setintersect

Evaluate the intersection of two arrays. More...

Evaluate the intersection of two arrays.

The inputs must be one-dimensional arrays. Batching is not currently supported.

An example:

int h_setA[4] = {1, 2, 3, 3};

int h_setB[4] = {3, 3, 4, 5};

A multi dimensional data container.

AFAPI array setIntersect(const array &first, const array &second, const bool is_unique=false)

C++ Interface to evaluate the intersection of two arrays.

The function can be sped up if the input is sorted in increasing order and its values are unique.

int h_setA[4] = {1, 2, 3, 4};

int h_setB[4] = {2, 3, 4, 5};

const bool is_unique = true;

◆ af_set_intersect()

C Interface to evaluate the intersection of two arrays.

Parameters
[out] out intersection, values in increasing order [in] first input array [in] second input array [in] is_unique if true, skip calling unique internally
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ setIntersect() AFAPI array setIntersect ( const arrayfirst, const arraysecond, const bool  is_unique = false  )

C++ Interface to evaluate the intersection of two arrays.

Parameters
[in] first input array [in] second input array [in] is_unique if true, skip calling setUnique internally
Returns
intersection, values in increasing order
◆ setintersect() AFAPI array setintersect ( const arrayfirst, const arraysecond, const bool  is_unique = false  )

C++ Interface to evaluate the intersection of two arrays.

Parameters
[in] first input array [in] second input array [in] is_unique if true, skip calling setUnique internally
Returns
intersection, values in increasing order
Deprecated:
Use setIntersect instead

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4