fullup: Convert Symmetric Sparse Matrix to Full Matrix

View source: R/fullup.R

fullupR Documentation

Convert Symmetric Sparse Matrix to Full Matrix

Description

fullup converts a symmetric sparse matrix sA, stored as an upper triangular matrix, to a full matrix A.

Usage

fullup(sA)

Arguments

sA

Matrix (sparseMatrix). Symmetric upper triangular matrix to be converted.

Details

This function can be used for transforming matrices that have been stored in a memory-efficient format (i.e., the upper triangle portion of a symmetric matrix) to their full format. The conversion is done either by directly transforming the sparse matrix or by leveraging the full function.

Value

A Full symmetric matrix.

See Also

full

Examples

data(grid1)
A <- fullup(grid1$sA)

gasper documentation built on May 29, 2024, 8:32 a.m.