SCM

SCM Repository

[matrix] Diff of /pkg/R/AllClass.R
ViewVC logotype

Diff of /pkg/R/AllClass.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 675, Sat Mar 26 11:16:05 2005 UTC revision 676, Sat Mar 26 15:59:18 2005 UTC
# Line 5  Line 5 
5    
6  ## ------------- Virtual Classes ----------------------------------------  ## ------------- Virtual Classes ----------------------------------------
7    
8  # Virtual class of all Matrix objects  # Mother class of all Matrix objects
9  setClass("Matrix", representation(Dim = "integer", Dimnames = "list",  setClass("Matrix", representation(Dim = "integer", Dimnames = "list",
10                                    "VIRTUAL"),                                    "VIRTUAL"),
11           prototype = prototype(Dim = integer(2), Dimnames = list(NULL,NULL)),           prototype = prototype(Dim = integer(2), Dimnames = list(NULL,NULL)),
# Line 43  Line 43 
43           representation(rcond = "numeric", factors = "list", "VIRTUAL"),           representation(rcond = "numeric", factors = "list", "VIRTUAL"),
44           contains = "dMatrix")           contains = "dMatrix")
45    
46    ## virtual SPARSE ------------
47    
48    setClass("sparseMatrix", contains = "Matrix")# "VIRTUAL"
49    
50    setClass("dsparseMatrix", contains = c("dMatrix", "sparseMatrix"))# "VIRTUAL"
51    
52  ## ------------------ Proper (non-virtual) Classes ----------------------------  ## ------------------ Proper (non-virtual) Classes ----------------------------
53    
54  ##----------------------  DENSE  -----------------------------------------  ##----------------------  DENSE  -----------------------------------------
# Line 96  Line 102 
102           validity = function(object) .Call("dppMatrix_validate", object)           validity = function(object) .Call("dppMatrix_validate", object)
103           )           )
104    
105  ##-------------------- S P A R S E ----------------------------------------  ##-------------------- S P A R S E (non-virtual) --------------------------
106    
107  # numeric, sparse, triplet general matrices  # numeric, sparse, triplet general matrices
108  setClass("dgTMatrix",  setClass("dgTMatrix",
109           representation(i = "integer", j = "integer", factors = "list"),           representation(i = "integer", j = "integer", factors = "list"),
110           contains = "dMatrix",           contains = "dsparseMatrix",
111           validity = function(object) .Call("dgTMatrix_validate", object)           validity = function(object) .Call("dgTMatrix_validate", object)
112           )           )
113    
# Line 122  Line 128 
128  # numeric, sparse, sorted compressed sparse column-oriented general matrices  # numeric, sparse, sorted compressed sparse column-oriented general matrices
129  setClass("dgCMatrix",  setClass("dgCMatrix",
130           representation(i = "integer", p = "integer", factors = "list"),           representation(i = "integer", p = "integer", factors = "list"),
131           contains = "dMatrix",           contains = "dsparseMatrix",
132           validity = function(object) .Call("dgCMatrix_validate", object)           validity = function(object) .Call("dgCMatrix_validate", object)
133           )           )
134    
# Line 143  Line 149 
149  # numeric, sparse, sorted compressed sparse row-oriented general matrices  # numeric, sparse, sorted compressed sparse row-oriented general matrices
150  setClass("dgRMatrix",  setClass("dgRMatrix",
151           representation(j = "integer", p = "integer", factors = "list"),           representation(j = "integer", p = "integer", factors = "list"),
152           contains = "dMatrix",           contains = "dsparseMatrix",
153           validity = function(object) .Call("dgRMatrix_validate", object)           validity = function(object) .Call("dgRMatrix_validate", object)
154           )           )
155    

Legend:
Removed from v.675  
changed lines
  Added in v.676

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge