Learn R Programming

MESS (version 0.5.7)

tracemp: 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

Examples

Run this code
# NOT RUN {
A <- matrix(1:12, ncol=3)
tracemp(A, A)

# }

Run the code above in your browser using DataLab