sp2mat {asreml} | R Documentation

## Convert sparse matrix.

### Description

Convert a sparse matrix in three column coordinate form to a dense matrix.

### Usage

    sp2mat(x)

### Arguments

`x` | A three column matrix containing the row and column indices and the matrix element, respectively.

### Details

If the sparse matrix inherits class `ginv`, the returned matrix preserves the A^{-1} attributes.

[Package asreml version 4.1.0.176 Index]