Skip to content

Commit 8c2592c

Browse files
author
maechler
committed
update for future Matrix where "Cholesky" is virtual
git-svn-id: https://svn.r-project.org/R/trunk@88059 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent ea8cfe7 commit 8c2592c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/library/methods/tests/duplicateClass.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ stopifnot(is(c2, "dtrMatrix"),
1010
all.equal(as.matrix(c2), tol = 7e-7, # see 2.7e-7
1111
matrix(c(3.74166, 0, 8.55236, 1.96396), 2))
1212
)
13-
clM <- getClass("Cholesky")
13+
clM <- getClass("pMatrix")
1414
cM <- new(clM)
1515

16-
## an*other* "Cholesky" class:
17-
setClass("Cholesky", contains = "numeric", representation(size = "integer"))
16+
## an*other* "pMatrix" class:
17+
setClass("pMatrix", contains = "numeric", representation(size = "integer"))
1818

19-
clG <- getClass("Cholesky", where = .GlobalEnv)
19+
clG <- getClass("pMatrix", where = .GlobalEnv)
2020

2121
stopifnot(exprs = {
22-
identical(clM, getClass("Cholesky", where = asNamespace("Matrix")))
23-
identical(evalq(getClass("Cholesky"), asNamespace("Matrix")), clM)
22+
identical(clM, getClass("pMatrix", where = asNamespace("Matrix")))
23+
identical(evalq(getClass("pMatrix"), asNamespace("Matrix")), clM)
2424
identical(getClass(class(cM)), clM)
25-
identical(getClass("Cholesky"), clG)
25+
identical(getClass("pMatrix"), clG)
2626
})
2727

2828
## Second: tests of methods defined for the same generic

0 commit comments

Comments
 (0)