SCM

SCM Repository

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

Diff of /pkg/R/dtTMatrix.R

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

revision 2119, Tue Mar 4 21:44:04 2008 UTC revision 2120, Tue Mar 4 21:44:41 2008 UTC
# Line 1  Line 1 
1  ### Coercion and Methods for Triangular Triplet Matrices  ### Coercion and Methods for Triangular Triplet Matrices
2    
 ## Use general method for TsparseMatrix instead  
 ## setAs("dtTMatrix", "dtCMatrix",  
 ##       function(from) {  
 ##           gC <- .Call(dtTMatrix_as_dgCMatrix, from)  
 ##           new("dtCMatrix", Dim = gC@Dim, Dimnames = gC@Dimnames, p = gC@p,  
 ##               i = gC@i, x = gC@x, uplo = from@uplo, diag = from@diag)  
 ##       })  
   
3  setAs("dtTMatrix", "dgTMatrix",  setAs("dtTMatrix", "dgTMatrix",
4        function(from) tT2gT(from, cl = "dtTMatrix", toClass = "dgTMatrix"))        function(from) tT2gT(from, cl = "dtTMatrix", toClass = "dgTMatrix"))
5  setAs("dtTMatrix", "generalMatrix",  setAs("dtTMatrix", "generalMatrix",

Legend:
Removed from v.2119  
changed lines
  Added in v.2120

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge