ldenseMatrix-class.RdldenseMatrix is the virtual class of all dense logical
(S4) matrices. It extends both denseMatrix
and lMatrix directly.
x:logical vector containing the entries of the matrix.
Dim, Dimnames:see Matrix.
Class "lMatrix", directly.
Class "denseMatrix", directly.
Class "Matrix", by class "lMatrix".
Class "Matrix", by class "denseMatrix".
Class lgeMatrix and the other subclasses.
showClass("ldenseMatrix")
#> Virtual Class "ldenseMatrix" [package "Matrix"]
#>
#> Slots:
#>
#> Name: x Dim Dimnames
#> Class: logical integer list
#>
#> Extends:
#> Class "lMatrix", directly
#> Class "denseMatrix", directly
#> Class "Matrix", by class "lMatrix", distance 2
#>
#> Known Subclasses: "lgeMatrix", "lsyMatrix", "ltrMatrix", "lspMatrix", "ltpMatrix"
as(diag(3) > 0, "ldenseMatrix")
#> 3 x 3 Matrix of class "lsyMatrix"
#> [,1] [,2] [,3]
#> [1,] TRUE FALSE FALSE
#> [2,] FALSE TRUE FALSE
#> [3,] FALSE FALSE TRUE