matrix_to_list: Transpose a full matrix into a list of matrices

View source: R/blockform.R

matrix_to_listR Documentation

Transpose a full matrix into a list of matrices

Description

Transpose a full matrix into a list of matrices

Usage

matrix_to_list(x, blockform = integer(0))

Arguments

x

a symmetric matrix of numeric

blockform

integer vector, explicitly defined by the user or parsed from a .lst file with 'parse_lst()'. If empty (the default), will be infered with 'infer_blockform()'.

Value

a list of matrices

Examples

m <- matrix(c(1,0.1,0,0,0.1,2,0,0,0,0,.3,0,0,0,0,.4), ncol = 4)
matrix_to_list(m)

FelicienLL/uncrtnty documentation built on Oct. 26, 2023, 12:50 p.m.