Vectorised conditional sign change
swapsign.RdVectorised function that changes sign of elements of a numeric vector, dependent on values of a logical argument of the same length.
swapsign.RdVectorised function that changes sign of elements of a numeric vector, dependent on values of a logical argument of the same length.