latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.mv
- tensorplay.functional.mv(input, vec, *, out=None) Tensor[source]
Performs a matrix-vector product of the matrix
inputand the vectorvec.If
inputis a tensor,vecis a 1-D tensor of size ,outwill be 1-D of size .Note
This function does not broadcast.
- Parameters:
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> mat = tensorplay.randn(2, 3) >>> vec = tensorplay.randn(3) >>> tensorplay.mv(mat, vec) tensor([ 1.0404, -0.6361])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

