Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

$%MTXINV^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 solves a special matrix equation: [A] * [Result] = [unit matrix],

Assuming that matrix DEMO contains:

 1    2    0    0
 3    4    0    0
 0    0   –1    2
 0    0    3    1

the function call Set X=$%MTXINV^MATH(.DEMO,.INV,4) will return the value 14 in X and as matrix INV:

–1.99999  0.99999   0        0
 1.49999  0.49999   0        0
 0        0         0.14285  0.28571
 0        0         0.42857  0.14285

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 $%MTXINV^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.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

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)