SCM

SCM Repository

[matrix] Diff of /pkg/man/bdiag.Rd
ViewVC logotype

Diff of /pkg/man/bdiag.Rd

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

revision 2205, Tue Jun 17 16:15:20 2008 UTC revision 2206, Wed Jun 25 14:57:02 2008 UTC
# Line 19  Line 19 
19  }  }
20  \author{Martin Maechler, built on a version posted by Berton Gunter to  \author{Martin Maechler, built on a version posted by Berton Gunter to
21    R-help; earlier versions have been posted by other authors, notably    R-help; earlier versions have been posted by other authors, notably
22    Scott Chasalow to S-news.    Scott Chasalow to S-news.  Doug Bates's faster implementation builds
23      on \code{\linkS4class{TsparseMatrix}} objects.
24  }  }
25  \seealso{\code{\link{Diagonal}} for constructing matrices of  \seealso{\code{\link{Diagonal}} for constructing matrices of
26    class \code{\linkS4class{diagonalMatrix}}, or \code{\link{kronecker}}    class \code{\linkS4class{diagonalMatrix}}, or \code{\link{kronecker}}
# Line 34  Line 35 
35  bdiag(Diagonal(2), matrix(1:3, 3,4), diag(3:2))  bdiag(Diagonal(2), matrix(1:3, 3,4), diag(3:2))
36    
37  mlist <- list(1, 2:3, diag(x=5:3), 27, cbind(1,3:6), 100:101)  mlist <- list(1, 2:3, diag(x=5:3), 27, cbind(1,3:6), 100:101)
38  bdiag(lapply(mlist, as.matrix))  bdiag(mlist)
39    
40    stopifnot(identical(bdiag(mlist), % <- used to fail in earlier versions
41                        bdiag(lapply(mlist, as.matrix))))
42  }  }
43  \keyword{array}  \keyword{array}

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

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