Maximum of two inputs. More...

Functions

AFAPI af_err af_maxof (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
 C Interface for max of two arrays. More...
 
AFAPI array max (const array &lhs, const array &rhs)
 C++ Interface for max of two arrays or an array and a scalar. More...
 
AFAPI array max (const array &lhs, const double rhs)
 C++ Interface for max of two arrays or an array and a scalar. More...
 
AFAPI array max (const double lhs, const array &rhs)
 C++ Interface for max of two arrays or an array and a scalar. More...
 

Detailed Description

Maximum of two inputs.

Function Documentation

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

C Interface for max of two arrays.

Parameters
[out]outwill contain maximum of lhs and rhs
[in]lhsfirst input
[in]rhssecond input
[in]batchspecifies if operations need to be performed in batch mode
Returns
AF_SUCCESS if the execution completes properly
AFAPI array af::max ( const array lhs,
const array rhs 
)

C++ Interface for max of two arrays or an array and a scalar.

Parameters
[in]lhsfirst input
[in]rhssecond input
Returns
maximum of lhs and rhs
AFAPI array af::max ( const array lhs,
const double  rhs 
)

C++ Interface for max of two arrays or an array and a scalar.

Parameters
[in]lhsfirst input
[in]rhssecond input
Returns
maximum of lhs and rhs
AFAPI array af::max ( const double  lhs,
const array rhs 
)

C++ Interface for max of two arrays or an array and a scalar.

Parameters
[in]lhsfirst input
[in]rhssecond input
Returns
maximum of lhs and rhs