Should I use VML to compute the sigmoid function of a vector?

If yes, is there a better way than doing 4 loops:

- Negate the vector
- Compute the exp of the vector
- Add 1 to the vector
- Compute the inverse of the vector

?

Thanks.

For more complete information about compiler optimizations, see our Optimization Notice.