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 2206, Wed Jun 25 14:57:02 2008 UTC revision 2207, Mon Jul 7 22:34:52 2008 UTC
# Line 538  Line 538 
538               TRUE               TRUE
539           })           })
540    
541    ## "scarce", those "sparse" in a more common sense,
542    ##  -----   e.g., do not coerce these to dense needlessly :
543    setClassUnion("scarceMatrix", members = c("sparseMatrix", "diagonalMatrix"))
544    
545    
546  ### Factorization classes ---------------------------------------------  ### Factorization classes ---------------------------------------------
547    
# Line 681  Line 685 
685  ### Sparse Vectors ---- here use 1-based indexing ! -----------  ### Sparse Vectors ---- here use 1-based indexing ! -----------
686  setClass("sparseVector",  setClass("sparseVector",
687           representation(length = "integer", i = "integer", "VIRTUAL"),           representation(length = "integer", i = "integer", "VIRTUAL"),
688             prototype = prototype(length = 0L),
689           validity = function(object) {           validity = function(object) {
690               n <- object@length               n <- object@length
691               if(any(object@i < 1L) || any(object@i > n))               if(any(object@i < 1L) || any(object@i > n))

Legend:
Removed from v.2206  
changed lines
  Added in v.2207

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