* (Matrix)

Multiplies a horizontal vector by a matrix.

Arguments

vector0
is the horizontal Vector to multiply.
matrix
(see Matrix) has the same number of rows as the vector's size, otherwise, an error will occur.

Return values

vector1
is the resulting Vector.

Complexity

O(m.dimension)

Example

"sl/algebra" useFile v: (1.0 2.0 -3.0) makeVector; m: ((6.0 -3.0 1.0 0.0) (-1.0 1.0 8.0 5.0) (0.0 2.0 -8.0 1.0)) makeMatrix; v m * .makeRange [print "," print] each
Output:
4.000000,-7.000000,41.000000,7.000000,