A high-performance general-purpose compute library

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

Functions

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

Detailed Description

Returns the elementwise maximum between two arrays.

Function Documentation

◆ af_maxof()

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

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

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

◆ max() [1/3]

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

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

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

◆ max() [2/3]

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

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

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

◆ max() [3/3]

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

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

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