tracemp: Fast computation of trace of matrix product

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

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

Usage

1
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

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

MESS documentation built on May 29, 2017, 2:39 p.m.

Search within the MESS package
Search all R packages, documentation and source code