Matrix-Vector Multiply - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English

The DSPLib contains a Matrix-Vector Multiply/GEMV (General Matrix Vector Multiplication) solution. The GEMV has two input ports, one for each input operand. Only iobuffer connections are supported.

The input iobuffer for the matrix is defined as Matrix A (inA) and is described by the template parameters TP_DIM_A and TP_DIM_B which specify the number of rows and columns in the matrix, respectively.

The second iobuffer of data is defined as Vector B (inB) and will be a vector with a size of TP_DIM_B elements. The number of columns and the number of elements in the vector must be equal and are therefore defined by the same template parameter.

The output iobuffer containing the result of the matrix-vector multiplication is connected to the output port. The output data will be a vector of size TP_DIM_A.