SCM

SCM Repository

[matrix] Annotation of /pkg/R/dsTMatrix.R
ViewVC logotype

Annotation of /pkg/R/dsTMatrix.R

Parent Directory Parent Directory | Revision Log Revision Log


Revision 589 - (view) (download)

1 : bates 557 ### Coercion and Methods for Symmetric Triplet Matrices
2 :    
3 : bates 589 setAs("dsTMatrix", "dsCMatrix",
4 :     function(from) .Call("dsTMatrix_as_dsCMatrix", from))
5 :    
6 : bates 557 ## Conversion to dense storage is first to a dsyMatrix
7 :     setAs("dsTMatrix", "dsyMatrix",
8 :     function(from) .Call("dsTMatrix_as_dsyMatrix", from))
9 :    
10 :     setAs("dsTMatrix", "dgeMatrix",
11 :     function(from) as(as(from, "dsyMatrix"), "dgeMatrix"))
12 :    
13 :     setAs("dsTMatrix", "matrix",
14 :     function(from) as(as(from, "dsyMatrix"), "matrix"))
15 :    
16 :     setMethod("t", signature(x = "dsTMatrix"),
17 :     function(x)
18 :     new("dsTMatrix", Dim = x@Dim,
19 :     i = x@j, j = x@i, x = x@x,
20 :     uplo = if (x@uplo == "U") "L" else "U"),
21 :     valueClass = "dsTMatrix")

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