blockHadamard: Compute the Hadamard product of XtX and kronecker(S, 1_k...

View source: R/utils.R

blockHadamardR Documentation

Compute the Hadamard product of XtX and kronecker(S, 1_k 1_k^T), without computing the Kronecker product.

Description

Compute the Hadamard product of XtX and kronecker(S, 1_k 1_k^T), without computing the Kronecker product.

Usage

blockHadamard(XtX, S)

Note

Much slower than XtX * kronecker(DKDinv, Matrix(1, k, k)).


rudazhang/gpsr documentation built on March 11, 2023, 5:49 p.m.