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 729 - (view) (download)

1 : bates 723 #### Logical Symmetric Sparse Matrices in Compressed column-oriented format
2 :    
3 :     ### contains = "lsparseMatrix"
4 :    
5 :     setAs("lsCMatrix", "dsCMatrix",
6 :     function(from) new("dsCMatrix", i = from@i, p = from@p,
7 :     x = rep(1, length(from@i)), uplo = from@uplo,
8 :     Dim = from@Dim, Dimnames = from@Dimnames))
9 : bates 729
10 :     setMethod("image", "lsCMatrix",
11 :     function(x, ...) {
12 :     x <- as(as(x, "dsCMatrix"), "dgTMatrix")
13 :     callGeneric()
14 :     })
15 :    
16 :     setMethod("chol", signature(x = "lsCMatrix", pivot = "missing"),
17 :     function(x, pivot, LINPACK) .Call("lsCMatrix_chol", x, TRUE))
18 :    
19 :     setMethod("chol", signature(x = "lsCMatrix", pivot = "logical"),
20 :     function(x, pivot, LINPACK) .Call("lsCMatrix_chol", x, pivot))
21 :    
22 :     setMethod("t", signature(x = "lsCMatrix"),
23 :     function(x) .Call("lsCMatrix_trans", x),
24 :     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