Last data update: 2014.03.03

R: Virtual Class "ldenseMatrix" of Dense Logical Matrices
ldenseMatrix-classR Documentation

Virtual Class "ldenseMatrix" of Dense Logical Matrices

Description

ldenseMatrix is the virtual class of all dense logical (S4) matrices. It extends both denseMatrix and lMatrix directly.

Slots

x:

logical vector containing the entries of the matrix.

Dim, Dimnames:

see Matrix.

Extends

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

Methods

coerce

signature(from = "matrix", to = "ldenseMatrix"): ...

coerce

signature(from = "ldenseMatrix", to = "matrix"): ...

as.vector

signature(x = "ldenseMatrix", mode = "missing"): ...

which

signature(x = "ndenseMatrix"), semantically equivalent to base function which(x, arr.ind); for details, see the lMatrix class documentation.

See Also

Class lgeMatrix and the other subclasses.

Examples

showClass("ldenseMatrix")

as(diag(3) > 0, "ldenseMatrix")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Matrix)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Matrix/ldenseMatrix-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: ldenseMatrix-class
> ### Title: Virtual Class "ldenseMatrix" of Dense Logical Matrices
> ### Aliases: ldenseMatrix-class !,ldenseMatrix-method
> ###   Ops,ldenseMatrix,ldenseMatrix-method
> ###   Logic,ldenseMatrix,lsparseMatrix-method
> ###   Logic,lsparseMatrix,ldenseMatrix-method Summary,ldenseMatrix-method
> ###   as.logical,ldenseMatrix-method as.vector,ldenseMatrix-method
> ###   coerce,matrix,ldenseMatrix-method coerce,ldenseMatrix,matrix-method
> ###   diag,ldenseMatrix-method norm,ldenseMatrix,character-method
> ###   which,ldenseMatrix-method
> ### Keywords: classes
> 
> ### ** Examples
> 
> 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
Class "xMatrix", by class "lMatrix", distance 2
Class "mMatrix", by class "Matrix", distance 3

Known Subclasses: "lgeMatrix", "ltrMatrix", "ltpMatrix", "lsyMatrix", "lspMatrix"
> 
> as(diag(3) > 0, "ldenseMatrix")
3 x 3 Matrix of class "lgeMatrix"
      [,1]  [,2]  [,3]
[1,]  TRUE FALSE FALSE
[2,] FALSE  TRUE FALSE
[3,] FALSE FALSE  TRUE
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>