Matrix (version 0.99-3)

symmetricMatrix-class: Virtual Class of Symmetric Matrices in package:Matrix

Description

The virtual class of symmetric matrices, "symmetricMatrix", from the package Matrix contains numeric and logical, dense and sparse matrices, e.g., see the examples.

The main use is in methods (and C functions) that can deal with all symmetric matrices.

Arguments

Extends

Class "Matrix", directly.

Methods

There's a C function symmetricMatrix_validity() called by the internal validity checking functions.

See Also

triangularMatrix-class, and, e.g., dsyMatrix-class for numeric dense matrices, or lsCMatrix-class for a logical sparse matrix class.

Examples

Run this code
showClass("symmetricMatrix")

## The names of direct subclasses:
scl <- getClass("symmetricMatrix")@subclasses
directly <- sapply(lapply(scl, slot, "by"), length) == 0
names(scl)[directly]

Run the code above in your browser using DataCamp Workspace