gramian_reduction: Helper function to slm_fit_csr

View source: R/utils.R

gramian_reductionR Documentation

Helper function to slm_fit_csr

Description

This function generates a matrix that can be used to reduce the dimensions of x'x and xy such that positive definiteness is ensured and more practically, that SparseM::chol will work

Usage

gramian_reduction(zeroes)

Arguments

zeroes

logical vector indicating which entries of the diagonal of x'x are zeroes.

Value

SparseM matrix that will reduce the dimension of x'x and xy


markmfredrickson/RItools documentation built on June 15, 2025, 1:23 a.m.