ArrayFire: floor

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...
 

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.

◆ af_floor()

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()

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

C++ Interface to floor numbers.

Parameters
Returns
nearest integer less than or equal to in