Hi,
I need to get the sign value of each element in a vector.
is there a simple way to do so.
exp:
input: (32float) 1.26 0 63.54 -8.3 -1.2 1.6 5 -9 ....
output: 1 1 1 -1 -1 1 1 -1
thanks
Hi,
I need to get the sign value of each element in a vector.
is there a simple way to do so.
exp:
input: (32float) 1.26 0 63.54 -8.3 -1.2 1.6 5 -9 ....
output: 1 1 1 -1 -1 1 1 -1
thanks