☜ | $%MTXUNIT^MATHDraft MDC Standard | ☞ |
MTXUNIT^MATH : BOOLEAN ( .R : MATRIX , N : INTEGER , SPARSE : BOOLEAN : O)
$%MTXUNIT^MATH creates matrix R[N,N] as a unit matrix. If the value of the optional parameter SPARSE is 1 (true), a sparse unit matrix will be created, i.e., only the diagonal elements of the result matrix will be defined. The return value is 1 if a unit matrix can be created; or 0 if a) it cannot be created, or b) when N < 1.
Click here for $%MTXUNIT^MATH sample code.
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.
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 28-Nov-2011, 21:03:45.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)