Vectorization of a nestled loop
1 view (last 30 days)
I am trying to improve the overall performance of my code and I am learning about vectorization. I've read the documentation on this but I'm having a hard time with even seemingly simple parts of the code. I have the following loop
Where matA is a n x m matrix and B is a vector of size n. I'm not sure how to do this.
Any tips or help is appreciated, thank you!