A RetroSearch Logo

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

Search Query:

Showing content from https://arrayfire.org/docs/group__data__func__replace.htm below:

ArrayFire: replace

Replace elements of an array with elements of another array. More...

AFAPI void  replace (array &a, const array &cond, const array &b)   C++ Interface to replace elements of an array with elements of another array. More...
  AFAPI void  replace (array &a, const array &cond, const double &b)   C++ Interface to replace elements of an array with a scalar value. More...
  AFAPI void  replace (array &a, const array &cond, const long long b)   C++ Interface to replace elements of an array with a scalar value. More...
  AFAPI void  replace (array &a, const array &cond, const unsigned long long b)   C++ Interface to replace elements of an array with a scalar value. More...
  AFAPI af_err  af_replace (af_array a, const af_array cond, const af_array b)   C Interface to replace elements of an array with elements of another array. More...
  AFAPI af_err  af_replace_scalar (af_array a, const af_array cond, const double b)   C Interface to replace elements of an array with a scalar value. More...
  AFAPI af_err  af_replace_scalar_long (af_array a, const af_array cond, const long long b)   C Interface to replace elements of an array with a scalar value. More...
  AFAPI af_err  af_replace_scalar_ulong (af_array a, const af_array cond, const unsigned long long b)   C Interface to replace elements of an array with a scalar value. More...
 

Replace elements of an array with elements of another array.

Input values are retained when corresponding elements from the conditional array are true. Input values are replaced when corresponding elements from the conditional array are false.

◆ af_replace()

C Interface to replace elements of an array with elements of another array.

Elements of a are replaced with corresponding elements of b when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ af_replace_scalar()

C Interface to replace elements of an array with a scalar value.

Elements of a are replaced with a scalar value when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement scalar value
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ af_replace_scalar_long()

C Interface to replace elements of an array with a scalar value.

Elements of a are replaced with a scalar value when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement scalar value
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ af_replace_scalar_ulong()

C Interface to replace elements of an array with a scalar value.

Elements of a are replaced with a scalar value when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement scalar value
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ replace() [1/4]

C++ Interface to replace elements of an array with elements of another array.

Elements of a are replaced with corresponding elements of b when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement array
◆ replace() [2/4]

C++ Interface to replace elements of an array with a scalar value.

Elements of a are replaced with a scalar value when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement scalar value
◆ replace() [3/4]

C++ Interface to replace elements of an array with a scalar value.

Elements of a are replaced with a scalar value when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement scalar value
◆ replace() [4/4] AFAPI void replace ( arraya, const arraycond, const unsigned long long  b  )

C++ Interface to replace elements of an array with a scalar value.

Elements of a are replaced with a scalar value when cond is false.

Parameters
[in,out] a input array [in] cond conditional array [in] b replacement scalar value

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