Matrix (version 0.99-3)

triangularMatrix-class: Virtual Class of Triangular Matrices in package:Matrix

Description

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

The main use will be in methods (and C functions) that can deal with all triangular matrices.

Arguments

Extends

Class "Matrix", directly.

Methods

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

See Also

symmetricMatrix-class, and, e.g., dtrMatrix-class for numeric dense matrices, or ltCMatrix-class for a logical sparse matrix subclass of "triangularMatrix".

Examples

Run this code
showClass("triangularMatrix")

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

Run the code above in your browser using DataCamp Workspace