# tensorplay.functional.mv Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.mv.html ```python tensorplay.functional.mv(input, vec, *, out=None) → Tensor ``` Performs a matrix-vector product of the matrix input and the vector vec. If input is a $(n \times m)$ tensor, vec is a 1-D tensor of size $m$, out will be 1-D of size $n$. > **Note** > > This function does not broadcast. Parameters: - input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – matrix to be multiplied - vec ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – vector to be multiplied Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> mat = tensorplay.randn(2, 3) >>> vec = tensorplay.randn(3) >>> tensorplay.mv(mat, vec) tensor([ 1.0404, -0.6361]) ```