0

Write a programme for row by row multiplication in matrix and use functions also

like row 1=>x row 2=>

21st Jan 2018, 3:43 PM
Sonia Harjai
Sonia Harjai - avatar
3 Antworten
0
Do you think of a componentwise vector multiplication of several given vectors as a matrix or do you think of real matrix multiplication?
21st Jan 2018, 4:16 PM
Andreas K
Andreas K - avatar
0
component wise muli
22nd Jan 2018, 3:43 PM
Sonia Harjai
Sonia Harjai - avatar
0
Create 3 variables, first and second represent your input vectors, e.g. stored as array. Then iterate through your array, so from 0 to vector length. While doing this, multiplicate the values stored in the position i (iterator of your loop) of your input vectors and store them into your third array at position i.
22nd Jan 2018, 3:47 PM
Andreas K
Andreas K - avatar