We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 194cd08 commit c554448Copy full SHA for c554448
cachematrix.R
@@ -1,10 +1,10 @@
1
## Creating a special object for caching calculations
2
# example:
3
# m <- matrix(1:4,c(2,2))
4
-# mci <- makeCacheMatrix(m, func = function(m){message("calculating");solve(m)})
+# mci <- makeCacheMatrix({message("calculating");solve(m)})
5
# cacheSolve(mci)
6
# cacheSolve(mci) # should not print message again, should insted inform about cache use
7
-# mcs <- makeCacheMatrix(m, c(1,1), tol = .001)
+# mcs <- makeCacheMatrix(solve(m,c(1,1))
8
# cacheSolve(mcs)
9
10
# Class for creating matrices with
@@ -19,7 +19,7 @@ CachedOps <- setRefClass("CachedOps",
19
func <<- function(){
20
expr
21
}
22
- callSuper()
+ callSuper(...)
23
},
24
25
getResult = function(){
0 commit comments