Doubles each element of a numeric vector by passing the data into a parallelized C routine.
Examples
# Data
x = 1:5
# Process all elements of x
n = length(x)
# Call the routine
multiply_by_two(x, n = n)
Doubles each element of a numeric vector by passing the data into a parallelized C routine.
# Data
x = 1:5
# Process all elements of x
n = length(x)
# Call the routine
multiply_by_two(x, n = n)