SCM

SCM Repository

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

Diff of /pkg/R/lgCMatrix.R

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

revision 722, Mon May 9 14:29:12 2005 UTC revision 723, Tue May 10 01:42:05 2005 UTC
# Line 10  Line 10 
10            function(x) .Call("lgCMatrix_trans", x),            function(x) .Call("lgCMatrix_trans", x),
11            valueClass = "lgCMatrix")            valueClass = "lgCMatrix")
12    
13    setMethod("crossprod", signature(x = "lgCMatrix", y = "missing"),
14              function(x, y = NULL) .Call("lgCMatrix_crossprod", x, TRUE),
15              valueClass = "lsCMatrix")
16    
17    setMethod("tcrossprod", signature(x = "lgCMatrix"),
18              function(x) .Call("lgCMatrix_crossprod", x, FALSE),
19              valueClass = "lsCMatrix")
20    
21    setAs("lgCMatrix", "dgCMatrix",
22          function(from) new("dgCMatrix", i = from@i, p = from@p,
23                             x = rep(1, length(from@i)),
24                             Dim = from@Dim, Dimnames = from@Dimnames))
25    

Legend:
Removed from v.722  
changed lines
  Added in v.723

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