SCM

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2812, Mon Jul 16 16:04:26 2012 UTC revision 2813, Wed Jul 18 16:02:38 2012 UTC
# Line 113  Line 113 
113  str(t(sy2)) # uplo = "L", and the lower tri. (i.e. NA is replaced).  str(t(sy2)) # uplo = "L", and the lower tri. (i.e. NA is replaced).
114    
115  chol(sy2) #-> "Cholesky" matrix  chol(sy2) #-> "Cholesky" matrix
116    (sp2 <- pack(sy2)) # a "dspMatrix"
117    
118  ## Coercing to dpoMatrix gives invalid object:  ## Coercing to dpoMatrix gives invalid object:
119  sy3 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, -1, 2, -7))  sy3 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, -1, 2, -7))
# Line 120  Line 121 
121  \dontshow{  \dontshow{
122  tr <- try(as(sy3, "dpoMatrix"), silent=TRUE)  tr <- try(as(sy3, "dpoMatrix"), silent=TRUE)
123  stopifnot(1 == grep("not a positive definite matrix",  stopifnot(1 == grep("not a positive definite matrix",
124                      as.character(tr)))                      as.character(tr)),
125              is(sp2, "dspMatrix"))
126  }  }
127  }  }
128  \keyword{classes}  \keyword{classes}

Legend:
Removed from v.2812  
changed lines
  Added in v.2813

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