Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8650c5c

Browse files
committed
solved problem
it didn’t saving matrix inverse in cache
1 parent 89a6ad4 commit 8650c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cachematrix.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ makeCacheMatrix <- function(x = matrix()) {
1010
mi <<- NULL
1111
}
1212
get <- function() x
13-
setinverse <- function(minverse) mi < minverse
13+
setinverse <- function(minverse) mi <<- minverse
1414
getinverse <- function() mi
1515
list(set = set, get = get,
1616
setinverse = setinverse,

0 commit comments

Comments
 (0)