Matrix Vector Multiplication
Write a program which reads a n×m matrix A and a m×1 vector b, and prints their product Ab.
A column vector with m elements is represented by the following equation.
A n×m matrix with mm column vectors, each of which consists of n elements, is represented by the following equation.
i-th element of a m×1 column vector b is represented by bi (i=1,2,...,m), and the element in i-th row and j-th column of a matrix A is represented by aij (i=1,2,...,n,j=1,2,...,m).
The product of a n×m matrix A and a m×1 column vector b is a n×1 column vector c, and ci is obtained by the following formula: