- Objective
Write a programme for performing matrix-vector
multiplication using TBB and measure the performance. .
- Description
In this code we are doing multiplication of matrix ma and
vector vb and the resultant vector is stored in vector vc.
This example illustrates the use of parallel_for which breaks
the iteration space into chunks and runs each chunk on a separate thread. Operator() function
processes a chunk given by parallel_for.
It is assumed that number of columns of the matrix A and size of the vector are same.
- Input
Size (nrows=ncols=vecsize) , Number of Threads
- Output
Execution time in seconds required for matrix-vector multiplication.