vdotm ( v m -- p )
Matrix operations

Prev:m~ ( m1 m2 epsilon -- ? )
Next:mdotv ( m v -- p )


Vocabulary
math.matrices

Inputs
va sequence
ma matrix


Outputs
pa matrix


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

Notes
This word is the swapped variant of mdotv.
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 ; { 2 1 0 } { { 1 -1 2 } { 0 -3 1 } } vdotm .
{ 2 -5 5 }


Definition