A high-performance general-purpose compute library

Rounds up to the least integer greater than or equal to x. More...

Functions

AFAPI array ceil (const array &in)
 C++ Interface to ceil numbers. More...
 
AFAPI af_err af_ceil (af_array *out, const af_array in)
 C Interface to ceil numbers. More...
 

Detailed Description

Rounds up to the least integer greater than or equal to x.

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

Function Documentation

◆ af_ceil()

AFAPI af_err af_ceil ( af_array out,
const af_array  in 
)

C Interface to ceil numbers.

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

◆ ceil()

AFAPI array ceil ( const array in)

C++ Interface to ceil numbers.

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