MultM (FUN)ΒΆ

FUNCTION MultM : ResultCode

Multiplication of matrices: C := A*B + C.

C must be an (m x n) matrix, A an (m x p) matrix and B an (p x n) matrix
for suitable positive integers m, n, and p.

Note: C must be distinct from A and B.

Since matrices are stored in row-major form,
we use the ikj form of the multiplication to achieve unit stride for all
accesses in the inner loop.
InOut:

Scope

Name

Type

Comment

Return

MultM

ResultCode

Inout

C

Matrix

The result matrix (in/out)

A

Matrix

The left hand side

B

Matrix

The right hand side