ArrayFire: floor (original) (raw)
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] | out | nearest integer less than or equal to in |
|---|---|---|
| [in] | in | input 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] | out | length of the hypotenuse |
|---|---|---|
| [in] | lhs | length of first side |
| [in] | rhs | length of second side |
| [in] | batch | batch 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