tcpCompare: Compares cross-products

Description Usage Arguments Value Author(s) Examples

Description

Compare the output of tcrossprod with standard matrix multiplication.

Usage

1
tcpCompare(x, y)

Arguments

x

A matrix-like object.

y

Another matrix-like object.

Value

A logical scalar indicating whether tcrossprod(x, y) is identical to x %*% t(y).

Author(s)

Aaron Lun

Examples

1
2
3
4
5
6
7
8
NC <- 10
NP <- 20
NR <- 50

comp <- matrix(rnorm(NC*NP), ncol=NP)
rot <- Matrix::rsparsematrix(NR, NP, 0.1)

tcpCompare(comp, rot)

LTLA/Win32MatrixTest documentation built on May 10, 2019, 2:41 p.m.