ndenseMatrix-class.Rd
ndenseMatrix
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 "nMatrix"
, directly.
Class "denseMatrix"
, directly.
Class "Matrix"
, by class "nMatrix"
.
Class "Matrix"
, by class "denseMatrix"
.
signature(x = "nsparseMatrix", y = "ndenseMatrix")
: ...
signature(x = "ndenseMatrix", y = "nsparseMatrix")
: ...
signature(x = "nsparseMatrix", y = "ndenseMatrix")
: ...
signature(x = "ndenseMatrix", y = "nsparseMatrix")
: ...
signature(x = "ndenseMatrix", mode = "missing")
: ...
signature(x = "ndenseMatrix")
: extracts the
diagonal as for all matrices, see the generic diag()
.
signature(x = "ndenseMatrix")
, semantically
equivalent to base function which(x, arr.ind)
;
for details, see the lMatrix
class documentation.
Class ngeMatrix
and the other subclasses.
showClass("ndenseMatrix")
#> Virtual Class "ndenseMatrix" [package "Matrix"]
#>
#> Slots:
#>
#> Name: x Dim Dimnames
#> Class: logical integer list
#>
#> Extends:
#> Class "nMatrix", directly
#> Class "denseMatrix", directly
#> Class "Matrix", by class "nMatrix", distance 2
#> Class "replValueSp", by class "Matrix", distance 3
#>
#> Known Subclasses: "ngeMatrix", "ntrMatrix", "nsyMatrix", "ntpMatrix", "nspMatrix"
as(diag(3) > 0, "ndenseMatrix")# -> "nge"
#> 3 x 3 Matrix of class "nsyMatrix"
#> [,1] [,2] [,3]
#> [1,] TRUE FALSE FALSE
#> [2,] FALSE TRUE FALSE
#> [3,] FALSE FALSE TRUE