# SCM Repository

[matrix] Diff of /pkg/man/dsyMatrix-class.Rd
 [matrix] / pkg / man / dsyMatrix-class.Rd

# Diff of /pkg/man/dsyMatrix-class.Rd

revision 633, Sun Mar 13 21:01:15 2005 UTC revision 634, Sun Mar 13 21:01:45 2005 UTC
# Line 6  Line 6
6  \alias{dspMatrix-class}  \alias{dspMatrix-class}
7  \alias{coerce,dsyMatrix,dgeMatrix-method}  \alias{coerce,dsyMatrix,dgeMatrix-method}
8  \alias{coerce,dsyMatrix,matrix-method}  \alias{coerce,dsyMatrix,matrix-method}
9    \alias{chol,dsyMatrix,ANY-method}
10  \alias{norm,dsyMatrix,character-method}  \alias{norm,dsyMatrix,character-method}
11  \alias{norm,dsyMatrix,missing-method}  \alias{norm,dsyMatrix,missing-method}
12  \alias{t,dsyMatrix-method}  \alias{t,dsyMatrix-method}
# Line 41  Line 42
42    \describe{    \describe{
43      \item{coerce}{\code{signature(from = "dsyMatrix", to = "dgeMatrix")}}      \item{coerce}{\code{signature(from = "dsyMatrix", to = "dgeMatrix")}}
44      \item{coerce}{\code{signature(from = "dsyMatrix", to = "matrix")}}      \item{coerce}{\code{signature(from = "dsyMatrix", to = "matrix")}}
45        \item{chol}{\code{signature(x = "dsyMatrix")}: works via coercion to
46          positive definite matrix, see \code{\link{dpoMatrix-class}}.}
47      \item{norm}{\code{signature(x = "dsyMatrix", type = "character")}}      \item{norm}{\code{signature(x = "dsyMatrix", type = "character")}}
48    }    }
49  }  }
# Line 49  Line 52
52  \seealso{  \seealso{
54  }  }
55  %\examples{}  \examples{
56    ## Only upper triangular part matters (when uplo == "U" as per default)
57    (sy2 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, NA,32,77)))
58    (c2 <- chol(sy2))
59    str(c2)
60
61    ## An example where chol() can't work
62    (sy3 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, -1, 2, -7)))
63    validObject(as(sy3, "dpoMatrix"), test=TRUE) # >> is not pos.def.
64    try(chol(sy3)) ## Error: not pos.def
65    }
66  \keyword{classes}  \keyword{classes}

Legend:
 Removed from v.633 changed lines Added in v.634