useless thing I just thought of: if you have a smooth comparison operator betwee...
bob @bob@feed.hella.cheap
useless thing I just thought of: if you have a smooth comparison operator between two scalars then you can get a smooth sort function by using that operator as the nodes in a sorting network. for smooth comparison you just take x = (sigmoid(a - b)+1)/2, and outp_b = ax + b(1-x) and outp_a = a*(1-x) + b*x