A high-performance general-purpose compute library

Rounds down to the greatest integer less than or equal to x. More...

Functions

AFAPI array floor (const array &in)
 C++ Interface to floor numbers.
 
AFAPI af_err af_floor (af_array *out, const af_array in)
 C Interface to floor numbers.
 
AFAPI af_err af_hypot (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
 C Interface to calculate the length of the hypotenuse of two inputs.
 

Detailed Description

Rounds down to the greatest integer less than or equal to x.

Note
This function supports real inputs only. Complex inputs are not yet supported.

Function Documentation

◆ af_floor()

AFAPI af_err af_floor ( af_array out,
const af_array  in 
)

C Interface to floor numbers.

Parameters
[out]outvalues rounded to nearest integer less than or equal to in
[in]ininput array
Returns
AF_SUCCESS if the execution completes properly

◆ af_hypot()

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

C Interface to calculate the length of the hypotenuse of two inputs.

Parameters
[out]outlength of the hypotenuse
[in]lhslength of first side
[in]rhslength of second side
[in]batchspecifies if operations need to be performed in batch mode
Returns
AF_SUCCESS if the execution completes properly

◆ floor()

AFAPI array floor ( const array in)

C++ Interface to floor numbers.

Parameters
[in]ininput array
Returns
values rounded to nearest integer less than or equal to current value