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 867, Fri Aug 19 16:59:46 2005 UTC revision 868, Fri Aug 19 17:01:11 2005 UTC
# Line 54  Line 54 
54    
55  ## virtual SPARSE ------------  ## virtual SPARSE ------------
56    
57  setClass("sparseMatrix", representation("VIRTUAL"),  setClass("sparseMatrix", representation("VIRTUAL"), contains = "Matrix")
58           contains = "Matrix")  
59    ## general Triplet Matrices (dgT, lgT, ..):
60    setClass("gTMatrix", representation(i = "integer", j = "integer", "VIRTUAL"),
61             contains = "sparseMatrix")
62    
63  setClass("dsparseMatrix", representation("VIRTUAL"),  setClass("dsparseMatrix", representation("VIRTUAL"),
64           contains = c("dMatrix", "sparseMatrix"))           contains = c("dMatrix", "sparseMatrix"))
# Line 122  Line 125 
125    
126  # numeric, sparse, triplet general matrices  # numeric, sparse, triplet general matrices
127  setClass("dgTMatrix",  setClass("dgTMatrix",
128           representation(i = "integer", j = "integer", factors = "list"),           representation(factors = "list"),
129           contains = "dsparseMatrix",           contains = c("gTMatrix", "dsparseMatrix"),
130           validity = function(object) .Call("dgTMatrix_validate", object)           validity = function(object) .Call("dgTMatrix_validate", object)
131           )           )
132    
# Line 190  Line 193 
193    
194  # logical, sparse, triplet general matrices  # logical, sparse, triplet general matrices
195  setClass("lgTMatrix",  setClass("lgTMatrix",
196           representation(i = "integer", j = "integer"),           contains = c("gTMatrix", "lsparseMatrix"),
          contains = "lsparseMatrix",  
197           validity = function(object) .Call("lgTMatrix_validate", object)           validity = function(object) .Call("lgTMatrix_validate", object)
198           )           )
199    

Legend:
Removed from v.867  
changed lines
  Added in v.868

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