A high-performance general-purpose compute library

Returns the elementwise minimum between two arrays. More...

Functions

AFAPI array min (const array &lhs, const array &rhs)
 C++ Interface to find the elementwise minimum between two arrays. More...
 
AFAPI array min (const array &lhs, const double rhs)
 C++ Interface to find the elementwise minimum between an array and a scalar value. More...
 
AFAPI array min (const double lhs, const array &rhs)
 C++ Interface to find the elementwise minimum between an array and a scalar value. More...
 
AFAPI af_err af_minof (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
 C Interface to find the elementwise minimum between two arrays. More...
 

Detailed Description

Returns the elementwise minimum between two arrays.

Function Documentation

◆ af_minof()

AFAPI af_err af_minof ( af_array out,
const af_array  lhs,
const af_array  rhs,
const bool  batch 
)

C Interface to find the elementwise minimum between two arrays.

Parameters
[out]outminimum
[in]lhsinput array
[in]rhsinput array
[in]batchbatch mode
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ min() [1/3]

AFAPI array min ( const array lhs,
const array rhs 
)

C++ Interface to find the elementwise minimum between two arrays.

Parameters
[in]lhsinput array
[in]rhsinput array
Returns
minimum

◆ min() [2/3]

AFAPI array min ( const array lhs,
const double  rhs 
)

C++ Interface to find the elementwise minimum between an array and a scalar value.

Parameters
[in]lhsinput array
[in]rhsscalar value
Returns
minimum

◆ min() [3/3]

AFAPI array min ( const double  lhs,
const array rhs 
)

C++ Interface to find the elementwise minimum between an array and a scalar value.

Parameters
[in]lhsscalar value
[in]rhsinput array
Returns
minimum