pub unsafe extern "C" fn ggml_trunc(
ctx: *mut ggml_context,
a: *mut ggml_tensor,
) -> *mut ggml_tensorExpand description
Truncates the fractional part of each element in the tensor (towards zero). For example: trunc(3.7) = 3.0, trunc(-2.9) = -2.0 Similar to std::trunc in C/C++.