A high-performance general-purpose compute library

Round numbers to the nearest integer. More...

Functions

array round (const array &in)
 C++ Interface to round numbers.
 
af_err af_round (af_array *out, const af_array in)
 C Interface to round numbers.
 

Detailed Description

Round numbers to the nearest integer.

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

Function Documentation

◆ af_round()

af_err af_round ( af_array * out,
const af_array in )

C Interface to round numbers.

Parameters
[out]outnearest integer
[in]ininput array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ round()

array round ( const array & in)

C++ Interface to round numbers.

Parameters
[in]ininput array
Returns
nearest integer