## $%MTXMUL^MATH## M[UMPS] by Example |

Approved for inclusion in a future M[UMPS] language standard as part of the library for Matrix Mathematics.

This function multiplies two matrices, and returns the result in a third matrix. The result matrix may not be either of the source matrices.

Assuming that the matrices DEMO and INV are as in the example with the function MTXINV, then the function call

`Set X=$%MTXMUL^MATH(.DEMO,.INV,.R,4,4,4)`

will return the value `1` in `X` and as matrix `R`:

1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1

Assuming that the matrices A and B contain:

A B 1 2 –1 0 3 1 2 4 0 2 1 –4 5 –2 2 –5 1 2 1 0 3 2 3 –1

then the function call `Set
X=$%MTXMUL^MATH(.A,.B,.R,3,4,3)` will return the value
`1` in X and as the matrix `R`:

–6 11 –5 16 7 13 31 –17 15

The MDC has approved code to approximate the return value of this function.
Implementors are encouraged to provide more accurate and efficient code).

Click here for $%MTXMUL^MATH sample code to
view or download the code for this function.

Click here for AllFunctions to view
or download the code for all M[UMPS] Library Functions.

Copyright © Standard Documents; 1977-2017 MUMPS Development Committee;

Copyright © Examples: 1995-2017 Ed de Moel;

Copyright © Annotations: 2003-2017 Jacquard Systems Research.

*The information in this page is
NOT authoritative and subject to be modified
at any moment.Please consult the
appropriate (draft) language standard for an
authoritative definition.*

*Some specifications are "approved
for inclusion in a future standard". Note
that the MUMPS Development Committee cannot
guarantee that such future standards will
indeed be published.*

This page most recently updated on 29-Nov-2011, 20:00:18 .

For comments, contact Ed de Moel (demoel@jacquardsystems.com)