lotriMatInv: Converts a matrix into a list of block matrices

Description Usage Arguments Details Value Author(s) Examples

View source: R/lotriMatInv.R

Description

Converts a matrix into a list of block matrices

Usage

1

Arguments

mat

Matrix to convert to a list of block matrices

Details

This is the inverse of 'lotriMat()'

Value

A list of block matrixes

Author(s)

Matthew Fidler

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# Create a block matrix using `lotri()`
mat <- lotri({
   a+b ~ c(1,
           0.5, 1)
   c ~ 1
   d +e ~ c(1,
            0.5, 1)
})

print(mat)

# now convert t a list of matrices

mat2 <- lotriMatInv(mat)
print(mat2)

# Of course you can convert it back to a full matrix:

mat3 <- lotriMat(mat2)

print(mat3)

nlmixrdevelopment/lotri documentation built on April 22, 2021, 2:21 a.m.