# How to compute a conditional sum of a vector efficiently

**URL:** <https://discourse.julialang.org/t/how-to-compute-a-conditional-sum-of-a-vector-efficiently/85699>\
**Category:** General Usage\
**Created:** [August 13, 2022, 9:08am UTC](https://discourse.julialang.org/t/how-to-compute-a-conditional-sum-of-a-vector-efficiently/85699 "2022-08-13T09:08:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [August 13, 2022, 6:56pm UTC](https://discourse.julialang.org/t/how-to-compute-a-conditional-sum-of-a-vector-efficiently/85699/4 "2022-08-13T18:56:18Z")

</div>

2 posts were split to a new topic: [Speeding up a sum involving 3 matrices](https://discourse.julialang.org/t/speeding-up-a-sum-involving-3-matrices/85713)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-compute-a-conditional-sum-of-a-vector-efficiently/85699)._
