tr {ADtools}R Documentation

Trace of a matrix

Description

Trace of a matrix

Usage

tr(x)

Arguments

x

A square numeric matrix

Examples

A <- randn(2, 2)
tr(A)

B <- randn(3, 3)
tr(B)


[Package ADtools version 0.5.5 Index]