mdotv ( m v -- p )
Matrix operations

Prev:vdotm ( v m -- p )
Next:mdot ( m m -- m )


Vocabulary
math.matrices

Inputs
ma matrix
va sequence


Outputs
pa matrix


Word description
Computes the dot product of a matrix and a vector.

Notes
This word is the swapped variant of vdotm.
This word is intended for use with "flat" (2-dimensional) matrices.
This word assumes that elements of the input matrix are compatible with the following words:
* ( x y -- z )

+ ( x y -- z )


Examples
USING: math.matrices prettyprint ; { { 1 -1 2 } { 0 -3 1 } } { 2 1 0 } mdotv .
{ 1 -3 }


Definition