* (Matrix)

Multiplies two matrixes.

Arguments

matrix0
and
matrix1
are the Matrixes to be multiplied. The number of
matrix0
columns must be equal to the number of
matrix1
rows, otherwise, an error will occur.

Return values

matrix2
is the resulting Matrix.

Complexity

O(matrix0.rows*matrix0.columns*matrix1.columns)

Example

"sl/algebra" useFile m1: ((1.0 3.0 2.0) (1.0 2.0 -3.0)) makeMatrix; m2: ((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; m: m1 m2 *; m.rows [i m.rowRange [print "," print] each LF print] times
Output:
3.000000,4.000000,9.000000,17.000000, 4.000000,-7.000000,41.000000,7.000000,