R: Fast computation of trace of matrix product

tracemp {MESS} | R Documentation

## Fast computation of trace of matrix product

### Description

Fast computation of the trace of the matrix product trace(t(A)

### Usage

    tracemp(A, B)

### Arguments

`A` | A matrix with dimensions n*k.
`B` | A matrix with dimenions n*k.

### Value

The trace of the matrix product

### Author(s)

Claus Ekstrom <claus@rprimer.dk>

### Examples

    A <- matrix(1:12, ncol=3)
    tracemp(A, A)

[Package MESS version 0.5.6 Index]