SCM

SCM Repository

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

Diff of /pkg/R/sparseMatrix.R

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

revision 1512, Tue Sep 5 10:08:20 2006 UTC revision 1513, Tue Sep 5 13:16:23 2006 UTC
# Line 102  Line 102 
102  Tsp2grNEL <- function(from) {  Tsp2grNEL <- function(from) {
103      d <- dim(from)      d <- dim(from)
104      if(d[1] != d[2])      if(d[1] != d[2])
105          stop("only square matrices can be used as incidence matrices for grphs")          stop("only square matrices can be used as incidence matrices for graphs")
106      n <- d[1]      n <- d[1]
107      if(n == 0) return(new("graphNEL"))      if(n == 0) return(new("graphNEL"))
108      if(is.null(rn <- dimnames(from)[[1]]))      if(is.null(rn <- dimnames(from)[[1]]))

Legend:
Removed from v.1512  
changed lines
  Added in v.1513

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