format_Matrix: Imbue Matrix With Property Classes

Description Usage Arguments

Description

Gives a matrix classes such as sparseness and symmetry from the Matrix package. Note that a matrix cannot be both symmetric and triangular unless it is diagonal.

Usage

1
2
format_Matrix(x, sparse = TRUE, symmetric = FALSE,
  triangular = FALSE, diagonal = FALSE)

Arguments

x

a matrix with (or without) zero values

sparse

logical; gives class sparseMatrix and is almost always true.

symmetric

logical; gives class symmetricMatrix

triangular

logical; gives class triangularMatrix

diagonal

logical; gives class diagonalMatrix


wzhorton/hortonlib documentation built on May 9, 2019, 8:19 a.m.