SCM

SCM Repository

[matrix] Diff of /pkg/Matrix/R/diagMatrix.R
ViewVC logotype

Diff of /pkg/Matrix/R/diagMatrix.R

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

revision 1591, Thu Sep 28 15:28:20 2006 UTC revision 1592, Thu Sep 28 15:31:17 2006 UTC
# Line 271  Line 271 
271  }  }
272    
273  setMethod("show", signature(object = "diagonalMatrix"),  setMethod("show", signature(object = "diagonalMatrix"),
274            function(object) prDiag(object))            function(object) {
275                  d <- dim(object)
276                  cl <- class(object)
277                  cat(sprintf('%d x %d diagonal matrix of class "%s"\n',
278                              d[1], d[2], cl))
279                  prDiag(object)
280              })

Legend:
Removed from v.1591  
changed lines
  Added in v.1592

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