Truncate to nearest integer. More...

Functions

AFAPI array trunc (const array &in)
 C++ Interface for truncating an array of numbers. More...
 
AFAPI af_err af_trunc (af_array *out, const af_array in)
 C Interface for truncating an array of numbers. More...
 

Detailed Description

Truncate to nearest integer.

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

Function Documentation

AFAPI af_err af_trunc ( af_array out,
const af_array  in 
)

C Interface for truncating an array of numbers.

Parameters
[out]outwill contain values truncated to nearest integer not greater than input
[in]inis input array
Returns
AF_SUCCESS if the execution completes properly
AFAPI array af::trunc ( const array in)

C++ Interface for truncating an array of numbers.

Parameters
[in]inis input array
Returns
values truncated to nearest integer not greater than input values