If the input is greater than 0, return 1; if it is less than 0, return -1; if it is equal to 0, return 0.
- Template params:
- T: type of the operation;
- T_LEN: number of elements to be processed in the kernel per iteration;
- T_INCREMENT: parameter which indicates how much iterations have been performed by the SIMD with respect to the intended total length;
- T_SIMD_DEPTH: dimension of the SIMD to be performed. Addressed in the Xilinx UG1076, it depends on the type chosen;
- SCALAR: scalar to which the elements of the array are compared to;
- Function params:
- input_vector: elements of the vector to be passed to the kernel.
- output_vector: elements of the result of the operation (vector) to be passed from the kernel.