# Is there a built in method to perform vector - matrix multiplication?

**URL:** https://openfhe.discourse.group/t/is-there-a-built-in-method-to-perform-vector-matrix-multiplication/358
**Category:** Library Questions
**Created:** [February 14, 2023, 4:24pm UTC](https://openfhe.discourse.group/t/is-there-a-built-in-method-to-perform-vector-matrix-multiplication/358 "2023-02-14T16:24:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)
#### Post date: [February 14, 2023, 5:00pm UTC](https://openfhe.discourse.group/t/is-there-a-built-in-method-to-perform-vector-matrix-multiplication/358/2 "2023-02-14T17:00:26Z")

</div>

Currently, there is no supported homomorphic matrix-vector multiplication in OpenFHE that is exposed to the end user. We are planning to release a library for homomorphic matrix arithmetic (including matrix-vector multiplication) in the near future.

If you want to implement this functionality yourself, check out this [paper](https://eprint.iacr.org/2014/106.pdf), in particular, Section 4.3 on “Matrix-Vector Multiplication”. For a visual illustration of this algorithm check out Figure 6 in this [paper](https://www.usenix.org/system/files/conference/usenixsecurity18/sec18-juvekar.pdf).

Related to this, an OpenFHE user released an implementation of vector-matrix multiplication in OpenFHE in this [post](https://openfhe.discourse.group/t/matrix-multiplication/180) which could be useful to you. Note that we did not use this implementation and it is not part of OpenFHE, use it at your own discretion.

---

_[View the full topic](https://openfhe.discourse.group/t/is-there-a-built-in-method-to-perform-vector-matrix-multiplication/358)._
