Skip to content

int64

builtin · libnexusinterp/nexus-value/ov-proprietary.cc

: y = int64 (x)

Return x recast as a signed 64-bit integer array, with range −9223372036854775808 to 9223372036854775807.

Non-integer values are rounded to the nearest integer, with halves rounded away from zero, and any value outside the representable range saturates to the nearest limit rather than wrapping around. The shape of x is preserved and exactly one argument is required.