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


RItools documentation built on June 8, 2025, 10:41 a.m.