# Summing boolean vectors/matrices

**URL:** <https://community.konduit.ai/t/summing-boolean-vectors-matrices/1500>\
**Category:** Uncategorized\
**Created:** [July 15, 2021, 3:21pm UTC](https://community.konduit.ai/t/summing-boolean-vectors-matrices/1500 "2021-07-15T15:21:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wcneill](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/wcneill/32/559_2.png) [@wcneill](https://community.konduit.ai/u/wcneill)\
**Post date:** [July 15, 2021, 3:21pm UTC](https://community.konduit.ai/t/summing-boolean-vectors-matrices/1500/1 "2021-07-15T15:21:20Z")

</div>

Is there any functionality to do math on boolean arrays (where 0 - False, 1 - True)? I’m writing a metrics package for my works clustering library and it would come in handy. If not, is it worth submitting a feature request for?

I just tested `.castTo(DataType.INT32)` and that converts my boolean arrays to integers. Is this a fast/efficient way of doing things? If so, problem solved.
