Initial revision
[LeanCalc.git] / help / matsum
1 NAME
2     matsum - sum the elements of a matrix
3
4 SYNOPSIS
5     matsum(m)
6
7 TYPES
8     m           matrix with any types of elements
9
10     return      number
11
12 DESCRIPTION
13     Returns the sum of the numeric (real or complex) elements of m.
14     Non-numeric elements are ignored.
15
16 EXAMPLE
17     > mat A[2,2] = {1, 2, 3, list(1,2,3)}
18     print matsum(A)
19       6
20
21 LIMITS
22     none
23
24 LINK LIBRARY
25     void matsum(MATRIX *m, VALUE *vres);
26
27 SEE ALSO
28     XXX - fill in
29