# Efficient way to vectorize the power function

**URL:** <https://discourse.mc-stan.org/t/efficient-way-to-vectorize-the-power-function/20405>\
**Category:** General\
**Created:** [January 25, 2021, 3:38am UTC](https://discourse.mc-stan.org/t/efficient-way-to-vectorize-the-power-function/20405 "2021-01-25T03:38:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![aakhmetz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/aakhmetz/32/18672_2.png) [@aakhmetz](https://discourse.mc-stan.org/u/aakhmetz)\
**Post date:** [January 25, 2021, 1:26pm UTC](https://discourse.mc-stan.org/t/efficient-way-to-vectorize-the-power-function/20405/3 "2021-01-25T13:26:38Z")

</div>

the same topic has been discussed earlier [Vectorizing power function - #4 by Bob\_Carpenter](https://discourse.mc-stan.org/t/vectorizing-power-function/1516/4) - as I understood there is not so much gain in terms of computational time if the vectorization is used

---

_[View the full topic](https://discourse.mc-stan.org/t/efficient-way-to-vectorize-the-power-function/20405)._
