Description Usage Arguments Details Value Note See Also Examples

Sum of the main diagonal elements.

1 | ```
Trace(a)
``` |

`a` |
a square matrix |

Sums the elements of the main diagonal of areal or complrx square matrix.

scalar value

The corresponding function in Matlab/Octave is called trace(), but this in **R**
has a different meaning.

1 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.