tracemp: Fast computation of trace of matrix product

View source: R/RcppExports.R

tracempR 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)


MESS documentation built on Aug. 21, 2023, 1:05 a.m.

Related to tracemp in MESS...