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 1284, Sat May 27 20:01:11 2006 UTC revision 1285, Sat May 27 20:12:08 2006 UTC
# Line 31  Line 31 
31                           j = .Call(Matrix_expand_pointers, from@p),                           j = .Call(Matrix_expand_pointers, from@p),
32                           Dim = from@Dim, Dimnames = from@Dimnames))                           Dim = from@Dim, Dimnames = from@Dimnames))
33    
34    setAs("lgCMatrix", "lgeMatrix",
35          function(from)
36              new("lgeMatrix", x = c(as(from, "matrix")), # is fast,
37                  Dim = from@Dim, Dimnames = from@Dimnames))
38    
39  setAs("lgCMatrix", "matrix",  setAs("lgCMatrix", "matrix",
40        function(from) .Call(lcsc_to_matrix, from))        function(from) .Call(lcsc_to_matrix, from))
41  ## TODO (maybe): write  matrix_to_lcsc()  in ../src/lgCMatrix.c  ## TODO (maybe): write  matrix_to_lcsc()  in ../src/lgCMatrix.c

Legend:
Removed from v.1284  
changed lines
  Added in v.1285

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