ArrayFire: trunc (original) (raw)

Truncate numbers to nearest integer. More...

Functions
AFAPI array trunc (const array &in)
C++ Interface to truncate numbers. More...
AFAPI af_err af_trunc (af_array *out, const af_array in)
C Interface to truncate numbers. More...

Truncate numbers to nearest integer.

Note

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

af_trunc()

C Interface to truncate numbers.

Parameters

[out] out nearest integer not greater in magnitude than in
[in] in input array

Returns

AF_SUCCESS, if function returns successfully, else an af_err code is given

C++ Interface to truncate numbers.

Parameters

Returns

nearest integer not greater in magnitude than in