SCM

SCM Repository

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

Diff of /pkg/R/Tsparse.R

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

revision 1348, Mon Aug 7 09:05:00 2006 UTC revision 1349, Mon Aug 7 09:05:42 2006 UTC
# Line 284  Line 284 
284            valueClass = "numeric")            valueClass = "numeric")
285  setMethod("rowMeans", signature(x = "TsparseMatrix"), .as.dgT.Fun,  setMethod("rowMeans", signature(x = "TsparseMatrix"), .as.dgT.Fun,
286            valueClass = "numeric")            valueClass = "numeric")
287    
288    ## Want tril(), triu(), band() --- just as "indexing" ---
289    ## return a "close" class:
290    setMethod("tril", "TsparseMatrix",
291              function(x, k = 0, ...) as_Tsparse(tril(as_Csparse(x), k = k, ...)))
292    setMethod("triu", "TsparseMatrix",
293              function(x, k = 0, ...) as_Tsparse(triu(as_Csparse(x), k = k, ...)))
294    setMethod("band", "TsparseMatrix",
295              function(x, k1, k2, ...)
296              as_Tsparse(band(as_Csparse(x), k1 = k1, k2 = k2, ...)))

Legend:
Removed from v.1348  
changed lines
  Added in v.1349

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