Matrix-Vector Product Calculator
Multiply an m×n matrix by an n-dimensional vector to get the m-dimensional product vector, with dimension checking.
Input
Enter the matrix one row per line and the vector to compute the product Av.
One line per matrix row. Separate entries with spaces or commas.
Enter on one line or one entry per line.
Result
Product vector Av
( -2, -2 )
Matrix size
2×3
Vector dimension
3
Result dimension
2
Components of the product vector
| Index | Value |
|---|---|
| 1 | -2 |
| 2 | -2 |
How it works
- The product Av of an m×n matrix A and an n-dimensional vector v is an m-dimensional vector whose i-th entry is Σ_j A[i][j]·v[j].
- The product is only defined when the matrix's column count n matches the vector's dimension n (otherwise a size-mismatch error is shown).
- Enter the matrix one row per line, separating entries with spaces or commas. Every row must have the same number of columns.
- Enter the vector as a single line or one entry per line; spaces, commas, and newlines all work as separators.
Reviews
Tell us what you think of this calculator.
Write a review
- Home
Matrix-Vector Product Calculator