Rev 1110 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
### Coercion and Methods for Triangular Triplet Matrices## Conversion to dense storage is first to a dtrMatrixsetAs("dtTMatrix", "dtrMatrix",function(from) .Call("dtTMatrix_as_dtrMatrix", from))setAs("dtTMatrix", "matrix",function(from) as(as(from, "dtrMatrix"), "matrix"))setAs("dtTMatrix", "dgeMatrix",function(from) as(as(from, "dtrMatrix"), "dgeMatrix"))setMethod("t", signature(x = "dtTMatrix"),function(x)new("dtTMatrix", Dim = rev(x@Dim), diag = x@diag,i = x@j, j = x@i, x = x@x,uplo = if (x@uplo == "U") "L" else "U"),valueClass = "dtTMatrix")