SCM

SCM Repository

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

Annotation of /pkg/R/lsCMatrix.R

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (view) (download)

1 : bates 723 #### Logical Symmetric Sparse Matrices in Compressed column-oriented format
2 :    
3 :     ### contains = "lsparseMatrix"
4 :    
5 : maechler 946 setAs("lsCMatrix", "matrix",
6 :     function(from) as(as(from, "lgCMatrix"), "matrix"))
7 :    
8 :     setAs("lsCMatrix", "lgCMatrix",
9 :     function(from) .Call("sCMatrix_to_gCMatrix", from, PACKAGE = "Matrix"))
10 :    
11 :     setAs("lsCMatrix", "lsTMatrix",
12 :     function(from) .Call("Csparse_to_Tsparse", from, PACKAGE = "Matrix"))
13 :    
14 : bates 723 setAs("lsCMatrix", "dsCMatrix",
15 :     function(from) new("dsCMatrix", i = from@i, p = from@p,
16 :     x = rep(1, length(from@i)), uplo = from@uplo,
17 :     Dim = from@Dim, Dimnames = from@Dimnames))
18 : bates 729
19 : maechler 946 setAs("lsCMatrix", "dgTMatrix",
20 :     function(from) callGeneric(as(x, "dsCMatrix")))
21 :    
22 :     ## FIXME: should be superfluous now:
23 : bates 729 setMethod("image", "lsCMatrix",
24 :     function(x, ...) {
25 :     x <- as(as(x, "dsCMatrix"), "dgTMatrix")
26 :     callGeneric()
27 :     })
28 :    
29 :     setMethod("chol", signature(x = "lsCMatrix", pivot = "missing"),
30 : bates 1038 function(x, pivot, LINPACK)
31 :     .Call("lsCMatrix_chol", x, TRUE, PACKAGE = "Matrix"))
32 : bates 729
33 :     setMethod("chol", signature(x = "lsCMatrix", pivot = "logical"),
34 : bates 1038 function(x, pivot, LINPACK)
35 :     .Call("lsCMatrix_chol", x, pivot, PACKAGE = "Matrix"))
36 : bates 729
37 :     setMethod("t", signature(x = "lsCMatrix"),
38 : bates 1038 function(x)
39 :     .Call("lsCMatrix_trans", x, PACKAGE = "Matrix"),
40 : bates 729 valueClass = "lsCMatrix")

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