Matrix multiplication by a vector [closed]

how to write code to multiply a matrix by a vector (vector multiplication)

Not any matrix and vector, but specifically a matrix already entered, for example:
a(5,-1,4) and (1,8,3)(2,9,4)(1,5,3)

You don’t need to make a code for entering numbers into a matrix and a vector.

I tried to look for such examples, but everywhere there are very complicated functions with input of numbers, I don’t need it. I am just starting to learn C++

  • Sounds like a relatively simple exercise about nested for loops. Try to do it yourself, write some code. Show us the code and tell what problems you have with it.

    – 

  • Programming is not just looking at examples and piecing code snippets together, at some point you just have to write the code yourself, have you tried it? You can start by writing the algorithm in pseudocode on paper, then translate it to c++.

    – 

Leave a Comment