eigenResidop {scMerge}R Documentation

fast matrix residual operator using RcppEigen

Description

fast matrix residual operator using RcppEigen

Usage

eigenResidop(A, B)

Arguments

A

a matrix

B

a matrix

Value

The matrix product of

A - B(B^t B)^{-1} B^t A

Examples

Y = M = diag(1, 500)
system.time(scMerge::eigenResidop(Y, M))
system.time(ruv::residop(Y, M))

[Package scMerge version 1.0.0 Index]