Previous Page | Next Page

Language Reference

TRACE Function

TRACE( matrix ) ;

The TRACE function produces a single numeric value that is the sum of the diagonal elements of matrix. For example, the following statement produces the output shown:

   a=trace({5 2, 1 3});
                A             1 row       1 col     (numeric)

                                          8
Previous Page | Next Page | Top of Page