1. Home
  2. ASReml-R 4 Commands
  3. sp2mat – Convert sparse matrix

sp2mat – Convert sparse matrix

Description

sp2mat converts a sparse matrix in three column coordinate form to a dense matrix.

Usage

sp2mat

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.

 

Updated on June 22, 2021

Was this article helpful?

Related Articles