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 48825a3 commit d90d8c7Copy full SHA for d90d8c7
cachematrix.R
@@ -10,7 +10,7 @@ makeCacheMatrix <- function(x = matrix()) { # The function where data is stored
10
inv <- NULL
11
set <- function(y) {
12
x <<- y
13
- m <<- NULL
+ inv <<- NULL
14
}
15
get <- function() x
16
setinv <- function(inverse) inv <<- inverse
@@ -23,7 +23,7 @@ makeCacheMatrix <- function(x = matrix()) { # The function where data is stored
23
cacheSolve <- function(x, ...) { # A function that solves the inverse of a matrix 'x', the inverse is stored in makeCasheMatrix for fast retrival
24
inv <- x$getinv()
25
if(!is.null(inv)) {
26
- message("getting cached data")
+ message("getting cached inverse")
27
return(inv)
28
29
data <- x$get()
0 commit comments