MATRIX SUM
Name:
Type:
Purpose:
Compute the sum of all elements of a matrix.
Syntax:
LET <par> = MATRIX SUM <mat>
<SUBSET/EXCEPT/FOR qualification>
where <mat> is a matrix for which the sum is to be
computed;
<par> is a parameter where the resulting sum is
saved;
and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
LET A = MATRIX SUM M
LET A = MATRIX SUM M SUBSET TAG = 1 TO 2
Note:
Matrices can be created with the READ MATRIX, CREATE MATRIX,
and MATRIX DEFINITION commands. Enter HELP MATRIX DEFINITION,
HELP READ MATRIX, and HELP CREATE MATRIX for details.
Note:
Row and column statistics for a matrix can be computed
using the MATRIX ROW STATISTIC and MATRIX COLUMN STATISTIC
commands. Enter HELP MATRIX ROW STATISTIC and
HELP MATRIX COLUMN STATISTIC for details.
Statistics for equisized submatrices of the original matrix
can be computed with the MATRIX PARTITION STATISTIC command.
Enter HELP MATRIX PARTITION STATISTIC for details.
Other statistics for the entire matrix can be computed with
the command MATRIX GRAND STATISTIC. Enter HELP GRAND STATISTIC
for details.
Default:
Synonyms:
MATRIX GRAND SUM is a synonym for MATRIX SUM.
Related Commands:
MATRIX COLUMN STATISTIC

= Compute column statistics for a matrix.

MATRIX ROW STATISTIC

= Compute row statistics for a matrix.

MATRIX PARTITION STATISTIC

= Compute statistics for equisized submatrices
of a matrix.

MATRIX GRAND STATISTIC

= Compute statistics for all elements of a matrix.

MATRIX MEAN

= Compute the mean for all elements of a matrix.

MATRIX COLUMN DIMENSION

= Dimension maximum number of columns for Dataplot
matrices.

Reference:
"Applied Multivariate Statistical Analysis", Third Edition,
Johnson and Wichern, PrenticeHall, 1992.
Applications:
Implementation Date:
Program:
READ MATRIX M
1 2 3 4
5 6 7 8
0 10 11 12
13 14 15 16
END OF DATA
LET A = MATRIX SUM A
Date created: 6/30/2005
Last updated: 6/30/2005
Please email comments on this WWW page to
alan.heckert@nist.gov.
