SP2Rect {mixAK} | R Documentation

## Creation of a rectangular symmetric matrix from its lower triangle (symmetric packed format)

### Description

It creates a symmetric matrix from its lower triangle.

### Usage

      SP2Rect(LT, dim)

### Arguments

`LT` | a numeric vector with the lower triangle (stored columnwise) of the matrix we want to reconstruct.
`dim` | number of rows and columns of a resulting matrix.

### Value

A matrix.

### Author(s)

Arnošt Komárek arnost.komarek[AT]mff.cuni.cz

### Examples

    SP2Rect(3, dim=1)
    SP2Rect(c(1, 0.5, 2), dim=2)
    SP2Rect(c(1, 0.5, 0.25, 2, -0.5, 3), dim=3)

[Package mixAK version 0.6 Index]