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. More...
 
AFAPI af_err af_floor (af_array *out, const af_array in)
 C Interface to floor numbers. More...
 
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. More...
 

Detailed Description

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

Note
This function only supports real inputs; 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]outnearest integer less than or equal to in
[in]ininput array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ 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]batchbatch mode
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ floor()

AFAPI array floor ( const array in)

C++ Interface to floor numbers.

Parameters
[in]ininput array
Returns
nearest integer less than or equal to in