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.
 
AFAPI af_err af_ceil (af_array *out, const af_array in)
 C Interface to ceil numbers.
 

Detailed Description

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

Note
This function supports real inputs only. 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]outvalues rounded to nearest integer greater than or equal to in
[in]ininput array
Returns
AF_SUCCESS if the execution completes properly

◆ ceil()

AFAPI array ceil ( const array in)

C++ Interface to ceil numbers.

Parameters
[in]ininput array
Returns
values rounded to nearest integer greater than or equal to current value