ldiMatrix-class {Matrix}R Documentation

Class "ldiMatrix" of Diagonal Logical Matrices

Description

The class "ldiMatrix" of logical diagonal matrices.

Objects from the Class

Objects can be created by calls of the form new("ldiMatrix", ...) but typically rather via Diagonal.

Slots

x:
Object of class "logical" ~~
diag:
Object of class "character" ~~
Dim:
Object of class "integer" ~~
Dimnames:
Object of class "list" ~~
factors:
Object of class "list" ~~

Extends

Class "diagonalMatrix", directly. Class "lMatrix", directly. Class "denseMatrix", by class "diagonalMatrix". Class "Matrix", by class "denseMatrix" and class "lMatrix".

See Also

Classes ddiMatrix and diagonalMatrix; function Diagonal.

Examples

(lM <- Diagonal(x = c(TRUE,FALSE,FALSE)))
str(lM)#> gory details (slots)
#not yet: crossprod(lM)

[Package Matrix version 0.995-11 Index]