ArrayFire: round (original) (raw)
Round numbers to the nearest integer. More...
| Functions | |
|---|---|
| AFAPI array | round (const array &in) |
| C++ Interface to round numbers. More... | |
| AFAPI af_err | af_round (af_array *out, const af_array in) |
| C Interface to round numbers. More... | |
Round numbers to the nearest integer.
Note
This function only supports real inputs; complex inputs are not yet supported.
◆ af_round()
C Interface to round numbers.
Parameters
| [out] | out | nearest integer |
|---|---|---|
| [in] | in | input array |
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
C++ Interface to round numbers.
Parameters
Returns
nearest integer