Learn R Programming

sglOptim (version 1.3.8)

get_coef: Get the nonzero coefficients

Description

Extracting nonzero coefficients from list (of lists) of matrices

Usage

get_coef(object, index = 1:length(object))

Arguments

object

a list of lists of matrices or a list of matrices

index

indices to be extracted from

Value

a list (of lists) with the nonzero coefficients